zcode-feature-graph.yaml 453 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364
  1. schemaVersion: 1
  2. graphId: "zcode-feature-relationships"
  3. purpose: "Seed semantic feature-impact discovery; verify every result against the current codegraph index."
  4. rules:
  5. semanticExpansion: "Follow one meaningful product edge by default."
  6. codegraphImpactDepth: 2
  7. maximumCodegraphImpactDepth: 3
  8. driftPolicy: "Report live callers missing from this graph as graph-drift-candidate; require human confirmation before adding product semantics."
  9. stableIdPolicy: "Keep node IDs stable; add aliases for terminology changes and multiple codeSeeds for nested call sites on the same product surface."
  10. persistencePolicy: "In planning modes, write confirmed semantic nodes and edges back to this graph; in impact-only mode, report a proposed graph delta."
  11. relationRanks:
  12. - "must-inspect"
  13. - "should-inspect"
  14. - "conditional"
  15. - "invariant-only"
  16. - "evidence-only"
  17. nodes:
  18. - id: "capability.desktop-crash-restart"
  19. kind: "capability"
  20. label: "Manual restart after a desktop renderer crash"
  21. aliases: ["崩溃重启", "renderer crash restart", "应用错误页重启"]
  22. docs: ["docs/desktop/crash-restart.md"]
  23. codeSeeds:
  24. - file: "packages/desktop/src/main/desktopCommandHandlers.ts"
  25. symbol: "restartAppAfterCrash"
  26. - file: "packages/desktop/src/main/desktopCommandHandlers.ts"
  27. symbol: "showRendererCrashDialog"
  28. - file: "packages/desktop/src/main/index.ts"
  29. symbol: "createWindowInstance"
  30. - file: "packages/ui/src/ErrorBoundary.tsx"
  31. symbol: "AppErrorBoundary"
  32. - file: "packages/desktop/src/renderer/src/main.tsx"
  33. invariants:
  34. - "Main owns one recovery dialog and one restart request; recovery bypasses normal quit barriers."
  35. - "Only desktop injects the restart callback; web and mobile retain page reload."
  36. - "Guest recovery, normal quit and updates stay independent; no watchdog or unsaved-state guarantee."
  37. - id: "capability.archive-permanent-deletion"
  38. kind: "capability"
  39. label: "Permanent deletion of archived conversations"
  40. aliases: ["永久删除归档会话", "归档真正删除", "archive permanent deletion"]
  41. docs: ["docs/superpowers/specs/2026-09-11-archive-management.md"]
  42. codeSeeds:
  43. - file: "packages/ui/src/project-sidebar/useArchiveManagement.ts"
  44. symbol: "useArchiveManagement"
  45. - file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/session-data/permanent-deletion.ts"
  46. symbol: "executeSessionDeletionWith"
  47. - file: "apps/zcode-cli/packages/adapters/src/storage/session-store/repositories/sessions.ts"
  48. symbol: "purgeSessions"
  49. invariants:
  50. - "Archive deletion performs physical session cleanup; retain independent forks and still-referenced artifacts, with itemized confirmation."
  51. - "Reject running work; revalidate archive membership, identity and retained artifacts before destructive effects."
  52. - "Published shares, workspace files and directory-level data stay independent; partial cleanup must not be reported as complete."
  53. - id: "capability.shared-task-cli"
  54. kind: "capability"
  55. label: "Local projectless workspaces share one chat CLI"
  56. aliases: ["无项目任务共享 CLI", "统一 CLI 选择", "shared task CLI"]
  57. docs: ["docs/shared-task-cli.md", "docs/session-task-restart.md"]
  58. codeSeeds:
  59. - file: "packages/services/src/zcode-agent/zcodeAgentProcessManager.ts"
  60. symbol: "ZCodeAgentProcessManager"
  61. - file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  62. symbol: "createZCodeAgentService"
  63. - file: "packages/services/src/project-storage/project-repository.ts"
  64. symbol: "hasProjectWorkspace"
  65. - file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/transport.ts"
  66. invariants:
  67. - "Existing workspace runtime ownership wins until its physical process tree exits; moving a task changes project affiliation only."
  68. - "Process startup and global preferences are coordinated per physical CLI; workspace initialization, session routing and persistence keep their own identities."
  69. - "Deferred draft release and session restart never dispose the shared process; process loss invalidates every bound workspace."
  70. - id: "capability.gen-ui-input-context"
  71. kind: "capability"
  72. label: "Gen UI model state attached to a conversation input"
  73. aliases: ["Gen UI 状态", "untrusted_gen_ui_state", "GenUI 上下文"]
  74. docs:
  75. - "docs/specs/gen-ui-model-context.md"
  76. - "docs/specs/gen-ui-output-directory.md"
  77. - "packages/services/src/gen-ui/CONTRACT.md"
  78. codeSeeds:
  79. - file: "packages/shared/src/gen-ui/contract.ts"
  80. symbol: "selectGenUiModelContext"
  81. - file: "packages/ui/src/v4/SessionPane.tsx"
  82. - file: "apps/zcode-cli/packages/core/src/agent/message-history.ts"
  83. symbol: "normalizeGenUiInput"
  84. invariants:
  85. - "Only modelContent supplies model context; privateContent restores widget UI."
  86. - "Changing widget state alone does not start an Agent turn."
  87. - "Canonical input owns the snapshot; CLI derives a model-only reminder and decodes legacy tails at input/read boundaries."
  88. - id: "surface.gen-ui-conversation-input"
  89. kind: "ui-surface"
  90. label: "Conversation send and Gen UI follow-up input"
  91. docs: ["packages/ui/src/gen-ui/CONTRACT.md"]
  92. codeSeeds:
  93. - file: "packages/ui/src/v4/SessionPane.tsx"
  94. invariants:
  95. - "Send targets retain workspace and session ownership; mobile does not gain a Gen UI sandbox."
  96. - id: "state.gen-ui-widget-state"
  97. kind: "state-owner"
  98. label: "Desktop Host widget state scoped by workspace, session and document path"
  99. docs: ["packages/services/src/gen-ui/CONTRACT.md"]
  100. codeSeeds:
  101. - file: "packages/shared/src/gen-ui/contract.ts"
  102. symbol: "buildGenUiStateKey"
  103. invariants:
  104. - "Desktop Host owns widget state even when HTML execution files belong to a remote Host."
  105. - id: "capability.tool-search"
  106. kind: "capability"
  107. label: "Provider-aware deferred ToolSearch"
  108. aliases: ["ToolSearch", "LocalToolSearch", "工具搜索", "延迟工具加载"]
  109. docs: ["apps/zcode-cli/docs/design/v2/tool/19-tool-search.md"]
  110. codeSeeds:
  111. - file: "apps/zcode-cli/packages/core/src/tool/search/exposure.ts"
  112. symbol: "buildToolExposure"
  113. - file: "apps/zcode-cli/packages/core/src/tool/search/history.ts"
  114. symbol: "collectDiscoveredTools"
  115. invariants:
  116. - "Current provider and launch override decide exposure; genuine results and effective compact boundaries own discovery."
  117. - "Pure output-token continuation reuses its announcement snapshot; disabled projection never mutates raw history."
  118. - "Local exposes LocalToolSearch and Native exposes ToolSearch; both resolve to the same canonical ToolSearch handler."
  119. - id: "surface.tool-search-card"
  120. kind: "ui-surface"
  121. label: "Shared ToolSearch and LocalToolSearch conversation card"
  122. aliases: ["搜索工具卡片", "LocalToolSearch 卡片"]
  123. docs: ["apps/zcode-cli/docs/design/v2/tool/19-tool-search.md"]
  124. codeSeeds:
  125. - file: "packages/ui/src/ToolCallBlocks/resolveRenderer.ts"
  126. symbol: "resolveToolCallRenderer"
  127. - file: "packages/ui/src/ToolCallBlocks/renderers/search.tsx"
  128. symbol: "ToolSearchToolCallBlock"
  129. invariants:
  130. - "Both names share the renderer, icon, localized summary and ToolSearch tooltip title, including pending and stopped calls before execution normalization."
  131. - "The card has no expandable arguments or results and preserves failure status; it does not join Explore content-search aggregation."
  132. - "Desktop and mobile share presentation; TS14 proves only the Desktop continuous execution path."
  133. - id: "surface.tool-search-settings"
  134. kind: "ui-surface"
  135. label: "General Settings ToolSearch mode"
  136. docs: ["apps/zcode-cli/docs/design/v2/tool/19-tool-search.md"]
  137. codeSeeds:
  138. - file: "packages/ui/src/SettingsPage.tsx"
  139. symbol: "SettingsPage"
  140. - file: "packages/ui/src/settingsPageHelpers.tsx"
  141. symbol: "GeneralSectionContent"
  142. - file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/server-operations.ts"
  143. symbol: "resolveSessionStartupPreferences"
  144. invariants:
  145. - "Host settings own auto/local/off (default off); new and cold-restored runtimes read once. Active runtimes and warm resumes stay fixed; forks inherit the parent."
  146. - id: "evidence.tool-search-lifecycle"
  147. kind: "evidence"
  148. label: "ToolSearch Desktop, CLI/TUI E2E and Runtime HTTP integration"
  149. docs: ["docs/testing/conversation-session-e2e-coverage-matrix.md"]
  150. codeSeeds:
  151. - file: "packages/desktop/test/e2e/conversation-session/tools/conversation-session-toolsearch-lifecycle.test.ts"
  152. - file: "packages/desktop/test/e2e/conversation-session/tools/conversation-session-toolsearch-cli.test.ts"
  153. - file: "packages/desktop/test/e2e/conversation-session/tools/conversation-session-toolsearch-tui.test.ts"
  154. - file: "packages/desktop/test/e2e/conversation-session/tools/conversation-session-toolsearch-catalog.test.ts"
  155. - file: "packages/desktop/test/e2e/conversation-session/tools/conversation-session-tool-discovery-card.test.ts"
  156. - id: "capability.preview-pane-image-actions"
  157. kind: "capability"
  158. label: "Preview Pane image copy, download and draft file reference"
  159. aliases: ["图片下载", "添加图片到聊天", "右侧图片操作"]
  160. docs: ["docs/ui/preview-pane-image-copy.md"]
  161. codeSeeds:
  162. - { file: "packages/ui/src/previewPaneImageContent.tsx", symbol: "ImagePreviewContent" }
  163. - { file: "packages/ui/src/PreviewPane.tsx", symbol: "resolvePreviewPaneImageFileReference" }
  164. invariants:
  165. - "Add to chat appends a file mention to the current focused draft without sending; remote references require matching workspace identity."
  166. - "Only image paths inside the source workspace become relative references; outside paths remain absolute."
  167. - "Download keeps original image bytes and MIME; file-backed SVG reads original bytes through the source workspace file service; clipboard copy keeps PNG output."
  168. - "Workspace identity guards do not alter desktop continuous or mobile replayable state."
  169. - id: "service.image-preview-download"
  170. kind: "service"
  171. label: "Shared image download through platform saveFile or browser download"
  172. codeSeeds:
  173. - {
  174. file: "packages/ui/src/components/ai-elements/image-preview-dialog.tsx",
  175. symbol: "downloadImagePreview",
  176. }
  177. - id: "service.workspace-file-draft-reference"
  178. kind: "service"
  179. label: "Existing focused Composer file reference event"
  180. codeSeeds:
  181. - {
  182. file: "packages/ui/src/lib/workspaceFileDrag.ts",
  183. symbol: "dispatchWorkspaceFileAddToChat",
  184. }
  185. - {
  186. file: "packages/ui/src/lib/workspaceFileComposer.ts",
  187. symbol: "appendWorkspaceFileMentionToComposer",
  188. }
  189. - id: "capability.side-pane-scope"
  190. kind: "capability"
  191. label: "Side pane display and commands share workspace and conversation ownership"
  192. aliases: ["侧栏归属", "关闭其他标签", "最近关闭标签"]
  193. docs: ["docs/ui/side-pane-tabs.md", "docs/testing/side-pane-tabs-e2e-case-catalog.md"]
  194. codeSeeds:
  195. - file: "packages/ui/src/lib/workspaceSidePane.ts"
  196. symbol: "isSidePaneTabVisibleInScope"
  197. - file: "packages/ui/src/hooks/useAppPanels.ts"
  198. symbol: "useAppPanels"
  199. invariants:
  200. - "Display, close selection, recent-closed and reopen share one workspace/owner predicate."
  201. - "Browser close keeps main authority; async completion only removes selected IDs in the originating workspace."
  202. - "Workspace-global tools remain global inside their workspace; intrinsic session owners and draft owners remain distinct."
  203. - id: "surface.archive-management"
  204. kind: "ui-surface"
  205. label: "Archived chats in Data and statistics settings"
  206. aliases: ["归档管理", "已归档的聊天"]
  207. docs: ["docs/superpowers/specs/2026-09-11-archive-management.md"]
  208. codeSeeds:
  209. - symbol: "ArchiveManagement"
  210. file: "packages/ui/src/project-sidebar/ArchiveManagement.tsx"
  211. - symbol: "useArchiveManagement"
  212. file: "packages/ui/src/project-sidebar/useArchiveManagement.ts"
  213. - id: "state.virtual-project-directory"
  214. kind: "state-owner"
  215. label: "Shared Host project tree projection for sidebar, composer and settings"
  216. codeSeeds:
  217. - symbol: "ProjectDirectoryProvider"
  218. file: "packages/ui/src/project-sidebar/ProjectDirectoryProvider.tsx"
  219. - id: "service.project-task-mutation"
  220. kind: "service"
  221. label: "UI adapter to existing Controller and TaskService mutations"
  222. codeSeeds:
  223. - symbol: "mutateProjectTask"
  224. file: "packages/ui/src/project-sidebar/task-mutation.ts"
  225. - id: "capability.permission-full-access"
  226. kind: "capability"
  227. label: "Approval full access updates task and pending input permissions"
  228. aliases: ["完全访问", "审批权限同步", "fullAccess"]
  229. docs:
  230. [
  231. "docs/permission-project-approval.md",
  232. "docs/working-memory/provider-refactor/steps/todo-158-permission-dialog-full-access-and-queued-mode.md",
  233. ]
  234. codeSeeds:
  235. - file: "apps/zcode-cli/packages/core/src/runtime/permission-full-access.ts"
  236. symbol: "grantPermissionFullAccess"
  237. - file: "packages/ui/src/v4/composer/composerPermissionGrant.ts"
  238. symbol: "applyComposerPermissionGrant"
  239. - id: "surface.permission-full-access"
  240. kind: "ui-surface"
  241. label: "Shared desktop/mobile approval full access action"
  242. codeSeeds:
  243. - file: "packages/ui/src/v4/V4InteractionDialogs.tsx"
  244. symbol: "V4InteractionDialogs"
  245. - file: "packages/ui/src/PermissionDialog.tsx"
  246. symbol: "PermissionDialog"
  247. - id: "capability.agent-plugin-discovery"
  248. kind: "capability"
  249. label: "Agent discovers official plugins and requests explicit installation"
  250. aliases: ["Agent 插件推荐", "SearchPlugins", "SuggestPluginInstall"]
  251. docs: ["docs/plugins/agent-plugin-discovery.md"]
  252. codeSeeds:
  253. - file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/plugin-discovery-port.ts"
  254. symbol: "createProtocolPluginDiscoveryPort"
  255. - file: "packages/ui/src/v4/PluginInstallCard.tsx"
  256. symbol: "PluginInstallCard"
  257. invariants:
  258. - "Only visible zcode-plugins-official entries are discoverable; model input never supplies download locations."
  259. - "CLI owns confirmation and installation; no automatic approval, even in yolo mode."
  260. - "Installation does not refresh session capabilities; the activation port is a separate boundary."
  261. - id: "capability.plugin-market-ui"
  262. kind: "capability"
  263. label: "Plugin market publisher classification and UI entry points"
  264. aliases: ["插件市场", "社区插件", "UI 插件", "Side Pane 插件市场"]
  265. docs:
  266. [
  267. "docs/plugins/plugin-market-interactions-scope.md",
  268. "docs/plugin-management-lifecycle-case-catalog.md",
  269. ]
  270. codeSeeds:
  271. - file: "packages/ui/src/settings/PluginStorePage.tsx"
  272. symbol: "PluginStorePage"
  273. - file: "packages/ui/src/settings/PluginsSection.tsx"
  274. symbol: "PluginsSection"
  275. - file: "packages/ui/src/settings/pluginStoreListing.ts"
  276. symbol: "isUiPluginItem"
  277. - file: "packages/ui/src/plugin-ui/adapters/useMarketPluginUi.ts"
  278. symbol: "useMarketPluginUi"
  279. - file: "packages/ui/src/store/pluginManagementStore.ts"
  280. symbol: "createPluginManagementStore"
  281. invariants:
  282. - "Publisher, use category and validated UI capability are independent; search stays within the selected source segment."
  283. - "Installation is user-scoped; project enabled/config overrides and restoring inheritance remain supported."
  284. - "Main market and side pane share the page but keep separate query projections; CLI owns installed/configured state."
  285. - "UI opening reuses an existing local desktop session; unsupported clients can browse/manage but cannot open surfaces."
  286. - "Default recommendations are curated independently of installed/development plugins; closing a panel does not uninstall."
  287. - id: "capability.plugin-store-mode-order"
  288. kind: "capability"
  289. label: "Public plugin categories ordered by interface mode"
  290. aliases: ["插件分类排序", "Code Work 插件排序", "pluginStoreOrder", "@ 插件排序", "+ 插件排序"]
  291. docs: ["docs/plugins/plugin-store-mode-order.md", "docs/plugin-marketplace-ui-ux.md"]
  292. codeSeeds:
  293. - file: "packages/ui/src/settings/PluginStoreListView.tsx"
  294. symbol: "PluginStoreListView"
  295. - file: "packages/ui/src/settings/pluginStoreListing.ts"
  296. symbol: "groupItemsByCategory"
  297. - file: "packages/ui/src/hooks/usePluginStoreOrder.ts"
  298. symbol: "usePluginStoreOrder"
  299. - file: "packages/ui/src/mentions/providers/pluginsMentionProvider.ts"
  300. symbol: "usePluginsMentionProvider"
  301. - file: "packages/shared/src/pluginStoreOrdering.ts"
  302. symbol: "sortPluginStoreEntries"
  303. - file: "packages/services/src/zcode-agent/pluginReferenceCatalogRequest.ts"
  304. symbol: "requestPluginReferenceCatalog"
  305. - file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/plugin-reference-catalog.ts"
  306. symbol: "getPluginReferenceCatalog"
  307. - file: "packages/shared/src/pluginStoreOrder.ts"
  308. symbol: "parsePluginStoreOrder"
  309. - file: "packages/services/src/client-config/clientConfigService.ts"
  310. symbol: "createClientConfigService"
  311. invariants:
  312. - "coding selects code and general selects work without requests; category membership remains marketplace-owned."
  313. - "Configured items precede default-sorted remainder; explicit other rank is allowed; featured, personal, search and installed ordering remain isolated."
  314. - "Window Local Host owns the independent public ClientConfigService; remote workspace and mobile attachments reuse it. Legacy config readers stay unchanged."
  315. - "Public config cache is partitioned by endpoint/version/platform; failed refresh keeps the last successful snapshot; late UI results cannot cross service or request generations."
  316. - "Retired guides maps to utilities in list and detail; legal is localized and only appears when it contains plugins."
  317. - "@ and + share official category/plugin ordering, with personal entries retaining relative order afterward; fuzzy score remains primary. Display category cannot widen frozen Session identity or enable disabled plugins."
  318. - "Legacy referenceCatalog omits category; only method-not-found on referenceCatalogWithCategory falls back. Closed Pickers do not request config; mode changes only reorder locally."
  319. - id: "capability.referrals-embedded"
  320. kind: "capability"
  321. label: "Rewards center embedded website"
  322. aliases: ["奖励中心", "Rewards", "邀请好友"]
  323. docs: ["docs/rewards-embedded.md"]
  324. codeSeeds:
  325. - file: "packages/ui/src/rewards/RewardsProvider.tsx"
  326. symbol: "RewardsProvider"
  327. - file: "packages/ui/src/rewards/RewardsWebview.tsx"
  328. symbol: "RewardsWebview"
  329. - file: "packages/shared/src/rewardsBridge.ts"
  330. symbol: "installRewardsPageBridge"
  331. invariants:
  332. - "Current-account credentials stay inside trusted embedded origins; no token in URL or bridge events."
  333. - "Website invitation records remain static until a server contract is supplied."
  334. - id: "capability.foreground-bash-output"
  335. kind: "capability"
  336. label: "Foreground Bash output viewport"
  337. aliases: ["前台 Bash 实时输出", "Bash 五行输出", "Bash 吸底"]
  338. docs: ["docs/bash-background-parity.md"]
  339. codeSeeds:
  340. - file: "packages/ui/src/ToolCallBlocks/renderers/execute.tsx"
  341. symbol: "ExecuteToolCallBlock"
  342. - file: "packages/ui/src/ToolCallBlocks/renderers/ExecuteOutput.tsx"
  343. symbol: "ExecuteOutput"
  344. - file: "packages/ui/src/components/ui/scroll-fade-viewport.tsx"
  345. symbol: "ScrollFadeViewport"
  346. - file: "apps/zcode-cli/packages/adapters/src/exec/bash-progress-poller.ts"
  347. symbol: "subscribeBashOutputProgress"
  348. invariants:
  349. - "Only expanded details render output; running and final fit short content with a five-line maximum and no additional notices or file links."
  350. - "Follow bounded previews by default; scrolling up freezes one window and scrolling to the bottom resumes; no frontend polling or output history accumulation."
  351. - "CLI execution, background output query, and desktop/mobile delivery boundaries are unchanged."
  352. - id: "capability.background-bash-output"
  353. kind: "capability"
  354. label: "Background Bash live output details"
  355. aliases: ["后台 Bash 输出", "后台终端进展", "background Bash logs"]
  356. docs: ["docs/background-bash-output-details.md", "docs/bash-background-parity.md"]
  357. codeSeeds:
  358. - file: "packages/ui/src/v4/ConversationStatusPanel.tsx"
  359. symbol: "RunningStatusItem"
  360. - file: "packages/ui/src/app-shell/BackgroundBashOutputSidePane.tsx"
  361. symbol: "BackgroundBashOutputSidePane"
  362. - file: "packages/ui/src/hooks/useBackgroundBashOutput.ts"
  363. symbol: "useBackgroundBashOutput"
  364. - file: "apps/zcode-cli/packages/core/src/runtime/methods/background-bash-output.ts"
  365. symbol: "readBackgroundBashOutput"
  366. invariants:
  367. - "Visible selected tab only; bounded 8 KiB tail; no model tool or runtime startup."
  368. - "Frozen workspace/session/work identity; no output in replay events or persisted projections."
  369. - id: "capability.interface-mode"
  370. kind: "capability"
  371. label: "General and coding interface modes"
  372. aliases: ["通用模式", "编程模式"]
  373. docs: ["docs/ui/general-coding-mode.md", "docs/testing/general-coding-mode-verification.md"]
  374. codeSeeds:
  375. - file: "packages/ui/src/lib/interfaceMode.ts"
  376. symbol: "normalizeInterfaceMode"
  377. - file: "packages/ui/src/hooks/useInterfaceMode.ts"
  378. symbol: "useIsGeneralMode"
  379. invariants:
  380. - "Display preference does not change Agent capabilities or canonical task records."
  381. - id: "state.interface-mode"
  382. kind: "state"
  383. label: "Renderer interface preference with persistence and broadcast"
  384. codeSeeds:
  385. - file: "packages/ui/src/store/index.ts"
  386. symbol: "createZCodeStore"
  387. - id: "surface.interface-mode-panels"
  388. kind: "surface"
  389. label: "Review and terminal creation entries with existing panels retained"
  390. codeSeeds:
  391. - file: "packages/ui/src/hooks/useAppPanels.ts"
  392. symbol: "useAppPanels"
  393. - id: "capability.dangerous-command-approval"
  394. kind: "capability"
  395. label: "Guarded permission mode"
  396. aliases: ["guarded", "dangerousCommandRules", "危险命令确认", "强制单次确认"]
  397. docs:
  398. - "docs/dangerous-command-approval-v1-plan.md"
  399. codeSeeds:
  400. - symbol: "matchDangerousCommand"
  401. file: "apps/zcode-cli/packages/core/src/tool/handlers/guarded/command.ts"
  402. - symbol: "resolveToolPermission"
  403. file: "apps/zcode-cli/packages/core/src/tool/executor/permission-flow.ts"
  404. - symbol: "buildProtocolPermissionOptions"
  405. file: "apps/zcode-cli/packages/bootstrap/src/permission-options.ts"
  406. - symbol: "getZCodeAgentAvailableModes"
  407. file: "packages/shared/src/zcode-agent-model-state.ts"
  408. - symbol: "buildAutomationModeOption"
  409. file: "packages/ui/src/settings/automationAgentConfigOptions.ts"
  410. - symbol: "filterModeOptions"
  411. file: "apps/zcode-cli/packages/tui/src/app-mode-command.ts"
  412. invariants:
  413. - "Only guarded mode explicit catalog matches add mandatory one-time approval; unsupported analysis retains YOLO policy. Existing modes and defaults are unchanged."
  414. - "Guarded replaces Edit only in selectable menus and shortcut cycles; persisted edit values and explicit legacy commands retain their original policy. YOLO and full-auto aliases remain unchanged."
  415. - "V1 targets bounded syntax in existing POSIX, Git Bash, and CMD shells; PowerShell payload analysis is out of scope and Bash AST must not stand in for CMD parsing."
  416. - "Deletion catalog includes recursive or syntactically batch rm, forced git clean, POSIX/Git Bash find -delete, CMD rd/rmdir /s and del/erase, and CMD/Git Bash robocopy MIR/PURGE unless reliably list-only. Quoted/escaped glob is not batch evidence; no filesystem expansion, indirect exec wrappers, or JOB file inspection."
  417. - "Matched input requires direct approval across guarded ingress and inherited children; no Hook auto-allow or project permission persistence."
  418. - "Ordinary and Explore subagents inherit guarded; dynamic-workflow subagents inherit the launching session's permission mode (guarded included) journaled when their run was created, and ask permissions and AskUserQuestion questions through the parent broker with a subagent origin; legacy workflow/script children remain YOLO while their guarded parent mode is preserved. Unattended guarded automation waits for approval."
  419. - "Approval remains bound to the actual input version; desktop continuous, mobile replayable, and workspace identity remain isolated."
  420. - id: "capability.marketing-touch"
  421. kind: "capability"
  422. label: "Marketing Touch card and popup delivery"
  423. aliases: ["活动 banner", "营销弹窗", "远端 Hero", "Marketing Touch"]
  424. docs: ["docs/marketing-touch-client.md", "docs/cloud-content-dialog.md"]
  425. codeSeeds:
  426. - file: "packages/ui/src/components/marketing-touch/MarketingTouchProvider.tsx"
  427. symbol: "MarketingTouchProvider"
  428. - id: "state.marketing-touch-controller"
  429. kind: "state"
  430. label: "Shell-owned marketing scheduling and action state"
  431. codeSeeds:
  432. - file: "packages/ui/src/components/marketing-touch/marketingTouchController.ts"
  433. symbol: "createMarketingTouchController"
  434. - id: "service.marketing-touch"
  435. kind: "service"
  436. label: "Authenticated delivery and confirm/cancel reports"
  437. codeSeeds:
  438. - file: "packages/services/src/marketing-touch/marketingTouchService.ts"
  439. symbol: "createMarketingTouchService"
  440. - id: "capability.delete-all-archived-tasks"
  441. kind: "capability"
  442. label: "Delete all archived tasks in the window"
  443. aliases: ["一键删除所有归档任务", "批量删除归档任务", "归档更多菜单"]
  444. docs: ["docs/task/delete-all-archived-tasks.md"]
  445. codeSeeds:
  446. - file: "packages/services/src/session/taskIndexRepo.ts"
  447. symbol: "TaskIndexRepo"
  448. invariants:
  449. - "Confirm all window scopes; delete only targets still archived in the write transaction."
  450. - "Keep CLI sessions and files; preserve workspace identity and existing source routing."
  451. - id: "surface.desktop-archived-tasks"
  452. kind: "ui-surface"
  453. label: "Desktop archived task list"
  454. codeSeeds:
  455. - file: "packages/ui/src/WorkspaceSidebar.tsx"
  456. symbol: "WorkspaceSidebar"
  457. - file: "packages/ui/src/DeleteAllArchivedTasksButton.tsx"
  458. symbol: "DeleteAllArchivedTasksButton"
  459. - file: "packages/ui/src/WorkspaceArchivedTasksFlatSection.tsx"
  460. symbol: "WorkspaceArchivedTasksFlatSection"
  461. - id: "surface.web-archived-tasks"
  462. kind: "ui-surface"
  463. label: "Web remote archived task list"
  464. codeSeeds:
  465. - file: "packages/ui/src/WorkspaceSidebar.tsx"
  466. symbol: "WorkspaceSidebar"
  467. - file: "packages/ui/src/DeleteAllArchivedTasksButton.tsx"
  468. symbol: "DeleteAllArchivedTasksButton"
  469. - file: "packages/ui/src/WebRemoteControlTaskIndex.tsx"
  470. symbol: "WebRemoteControlTaskIndex"
  471. - id: "capability.help-client-config"
  472. kind: "capability"
  473. label: "Community and feedback client configuration"
  474. aliases: ["用户社群", "帮助配置", "feedbackUrl"]
  475. docs: ["docs/ui/settings-community-link-config.md", "docs/testing/help-client-config-e2e.md"]
  476. codeSeeds:
  477. - file: "packages/shared/src/helpAppConfig.ts"
  478. symbol: "createHelpAppConfigReader"
  479. - file: "packages/desktop/src/main/desktopHelpConfig.ts"
  480. symbol: "createDesktopHelpConfigReader"
  481. - file: "packages/web/src/communityUrl.ts"
  482. symbol: "resolveWebHelpConfig"
  483. - id: "capability.subagent-computer-use-boundary"
  484. kind: "capability"
  485. label: "Subagent official Computer Use boundary"
  486. aliases:
  487. - "subagent CUA restriction"
  488. - "子 Agent Computer Use 限制"
  489. - "subagent computer use unavailable"
  490. docs:
  491. - "docs/cua/2026-08-18-subagent-computer-use-unavailable-spec.md"
  492. - "apps/zcode-cli/docs/design/v2/tool/07-subagent.md"
  493. codeSeeds:
  494. - symbol: "createBorrowedSubagentMcpAccess"
  495. file: "apps/zcode-cli/packages/core/src/subagent/borrowed-mcp-port.ts"
  496. - symbol: "resolveSubagentMcpAccess"
  497. file: "apps/zcode-cli/packages/core/src/runtime/methods/subagent.ts"
  498. - symbol: "resolveSubagentSkillPort"
  499. file: "apps/zcode-cli/packages/core/src/runtime/methods/subagent.ts"
  500. - symbol: "main"
  501. file: "apps/zcode-cli/packages/node-repl-host/src/server.ts"
  502. invariants:
  503. - "Only authority-verified official CUA is restricted; third-party MCP/Skill is unchanged."
  504. - "Main CUA and desktop/web delivery boundaries are unchanged."
  505. - id: "capability.model-io-full-retention"
  506. kind: "capability"
  507. label: "ModelIO full retention diagnostics"
  508. aliases:
  509. - "modelio full retention"
  510. - "full model io"
  511. - "完整保留模型 I/O"
  512. - "模型轨迹全量保留"
  513. docs:
  514. - "docs/model-io-full-retention-setting.md"
  515. - "apps/zcode-cli/docs/design/v2/model/README.md"
  516. codeSeeds:
  517. - symbol: "writeModelIODebugRecord"
  518. file: "apps/zcode-cli/packages/adapters/src/model/runner-debug.ts"
  519. - symbol: "AiSdkModelAdapter"
  520. file: "apps/zcode-cli/packages/adapters/src/model/runner.ts"
  521. - id: "capability.agent-core-runtime"
  522. kind: "capability"
  523. label: "ZCode CLI agent core runtime"
  524. aliases:
  525. - "agent core"
  526. - "turn runtime"
  527. - "智能体核心"
  528. - "回合运行时"
  529. docs:
  530. - "docs/product-capability-map.md"
  531. - "apps/zcode-cli/docs/design/v2/runtime-refactor.md"
  532. - "apps/zcode-cli/docs/design/v2/loop/architecture.md"
  533. - id: "capability.read-pdf"
  534. kind: "capability"
  535. label: "Read PDF native input and page extraction"
  536. aliases:
  537. - "Read pages"
  538. - "PDF Read"
  539. - "PDF 页面提取"
  540. docs:
  541. - "apps/zcode-cli/docs/design/v2/tool/01-read.md"
  542. - "apps/zcode-cli/docs/design/v2/tool/00-tool-change-chain.md"
  543. codeSeeds:
  544. - symbol: "readToolEntry"
  545. file: "apps/zcode-cli/packages/core/src/tool/handlers/read.ts"
  546. - symbol: "createPopplerPdfDocumentAdapter"
  547. file: "apps/zcode-cli/packages/adapters/src/pdf/index.ts"
  548. - symbol: "persistToolResultMediaAttachments"
  549. file: "apps/zcode-cli/packages/core/src/runtime/helpers/tool-result-media-persistence.ts"
  550. - symbol: "toAiSdkMessages"
  551. file: "apps/zcode-cli/packages/adapters/src/model/transform.ts"
  552. invariants:
  553. - "supportsPdf conditionally controls both provider-visible and executor Read schemas from the current turn snapshot."
  554. - "Native PDF and extracted page images keep supportsPdf and supportsImages as independent capabilities."
  555. - "Live and cold-resumed page images keep the same page order through the existing tool media artifact layout."
  556. - "Images, extracted PDF pages, native PDFs, binary files, and videos share one 40MiB provider-request budget measured as full data URL bytes; per-file video input validation remains separate."
  557. - id: "capability.browser-use-agent-guidance"
  558. kind: "capability"
  559. label: "Browser Use agent navigation, locator planning and popup recovery guidance"
  560. aliases:
  561. - "Browser Use explicit navigation wait"
  562. - "DOMContentLoaded wait"
  563. - "Browser Use locator planning"
  564. - "snapshot-proven locator"
  565. - "generic click target"
  566. - "popup recovery"
  567. - "浏览器显式导航等待"
  568. - "浏览器智能体定位"
  569. - "弹窗标签恢复"
  570. docs:
  571. - "docs/browser-use/2026-07-31-browser-generic-target-popup-recovery-guidance-spec.md"
  572. - "docs/browser-use/2026-07-10-browser-use-spec.md"
  573. - "docs/testing/browser-use-coverage-matrix.md"
  574. codeSeeds:
  575. - symbol: "loadBrowserDocumentation"
  576. file: "apps/zcode-cli/packages/core/src/browser-client/documentation.ts"
  577. - symbol: "buildJsToolDescription"
  578. file: "apps/zcode-cli/packages/core/src/tool/handlers/node-repl.ts"
  579. - symbol: "TAB_CONTEXT_RECOVERY_HINT"
  580. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  581. - file: "apps/zcode-cli/packages/browser-use-plugin/docs/api.json"
  582. - file: "apps/zcode-cli/packages/browser-use-plugin/docs/overview.md"
  583. - file: "apps/zcode-cli/packages/browser-use-plugin/docs/playwright.md"
  584. - file: "apps/zcode-cli/packages/browser-use-plugin/docs/workflow.md"
  585. - file: "apps/zcode-cli/packages/browser-use-plugin/skills/control-browser/SKILL.md"
  586. - id: "capability.browser-use-plugin-distribution"
  587. kind: "capability"
  588. label: "Browser Use official plugin versioning and distribution"
  589. aliases:
  590. - "Browser Use plugin version"
  591. - "Browser Use official cache"
  592. - "Browser Use SEA assets"
  593. - "浏览器插件版本"
  594. - "浏览器插件发布"
  595. docs:
  596. - "docs/browser-use/2026-08-14-browser-use-plugin-version-0-3-0-spec.md"
  597. - "docs/browser-use/2026-08-06-browser-use-plugin-version-0-2-1-spec.md"
  598. - "docs/browser-use/2026-08-02-browser-use-plugin-version-0-1-3-spec.md"
  599. - "apps/zcode-cli/docs/design/v2/plugin-compat.md"
  600. - "docs/browser-use/2026-07-13-node-repl-mcp-runtime-spec.md"
  601. codeSeeds:
  602. - file: "apps/zcode-cli/packages/browser-use-plugin/package.json"
  603. - file: "apps/zcode-cli/packages/browser-use-plugin/.zcode-plugin/plugin.json"
  604. - symbol: "OFFICIAL_PLUGIN_DEFINITIONS"
  605. file: "apps/zcode-cli/packages/bootstrap/src/app/official-plugin-definitions.ts"
  606. - symbol: "OFFICIAL_BROWSER_USE_REQUIRED_SEED_PATHS"
  607. file: "apps/zcode-cli/packages/bootstrap/src/app/official-plugin-definitions.ts"
  608. - symbol: "officialSeaPlugins"
  609. file: "apps/zcode-cli/packages/cli/scripts/sea-official-plugin-assets.mjs"
  610. - symbol: "NODE_REPL_SERVER_VERSION"
  611. file: "apps/zcode-cli/packages/node-repl-host/src/tool-contract.ts"
  612. - symbol: "REMOTE_AGENT_OFFICIAL_PLUGIN_INCLUDED_TOP_LEVEL_PATHS"
  613. file: "packages/server/src/remote/zcodeAgentOfficialPluginAssets.ts"
  614. - symbol: "REMOTE_AGENT_OFFICIAL_PLUGIN_REQUIRED_RELATIVE_PATHS"
  615. file: "packages/server/src/remote/zcodeAgentOfficialPluginAssets.ts"
  616. - file: "packages/desktop/scripts/prepare-agent-node-bundle.mjs"
  617. - file: "scripts/prepare-prebuilds.mjs"
  618. - id: "capability.model-capabilities"
  619. kind: "capability"
  620. label: "Model capabilities"
  621. aliases:
  622. - "model platform"
  623. - "model config"
  624. - "model catalog"
  625. - "ZCode Built-in Model Config Rules"
  626. - "模型能力"
  627. - "模型平台"
  628. - "模型配置"
  629. - "模型启停"
  630. - "Model ID 冲突"
  631. - "GLM-x-preview-f"
  632. - "x-preview-f-free"
  633. docs:
  634. - "docs/product-capability-map.md"
  635. - "docs/working-memory/provider-refactor/steps/03-staging-integration.md"
  636. - "docs/working-memory/provider-refactor/design/registry/configuration.md"
  637. - "docs/working-memory/provider-refactor/design/registry/provider-and-model-configuration-overview.md"
  638. - "docs/working-memory/provider-refactor/design/registry/request-compatibility-and-access-protocols.md"
  639. - "docs/working-memory/provider-refactor/design/registry/model-membership-and-enablement.md"
  640. - "docs/working-memory/provider-refactor/design/registry/zcode-builtin-provider-config.md"
  641. - "docs/working-memory/provider-refactor/design/model/input-output-format.md"
  642. - "docs/working-memory/provider-refactor/design/model/model-option-map.md"
  643. - "docs/working-memory/provider-refactor/design/model/option-map-writing-style.md"
  644. - "docs/working-memory/provider-refactor/steps/todo-98-builtin-option-map-formatting-regression.md"
  645. - "docs/working-memory/provider-refactor/steps/todo-95-builtin-reasoning-map-simplification-and-fallback.md"
  646. - "docs/working-memory/provider-refactor/steps/todo-03-provider-model-ownership-and-property-totality.md"
  647. - "docs/working-memory/provider-refactor/steps/todo-14-post-refactor-mechanical-zero.md"
  648. - "docs/working-memory/provider-refactor/steps/todo-55-provider-template-inheritance-cutover.md"
  649. - "docs/model-provider-opencode-config.md"
  650. - "docs/model-request-output-tokens.md"
  651. - "docs/superpowers/specs/2026-07-10-glm-52-suffixed-variant-media-fallback-design.md"
  652. - "docs/superpowers/specs/2026-07-17-kimi-k3-model-adapter-design.md"
  653. - "docs/superpowers/specs/2026-08-14-glm-5-3-model-adapter-design.md"
  654. - "docs/superpowers/specs/2026-08-21-model-provider-modality-settings-design.md"
  655. codeSeeds:
  656. - symbol: "ModelInputFormatConfig"
  657. file: "packages/provider/src/config/model-config.ts"
  658. - symbol: "ModelConfigRules"
  659. file: "packages/provider/src/config/model-config.ts"
  660. - symbol: "compileModelOptionMaps"
  661. file: "packages/model-option-map/src/option-maps.ts"
  662. - symbol: "createModelOptionMapFetch"
  663. file: "apps/zcode-cli/packages/adapters/src/model/model-option-map-fetch.ts"
  664. - symbol: "ProviderConfigResolver"
  665. file: "packages/provider/src/resolver.ts"
  666. - symbol: "ProviderRegistry"
  667. file: "packages/provider/src/registry.ts"
  668. - symbol: "ProviderSettingsFacade"
  669. file: "packages/provider/src/facades.ts"
  670. - symbol: "createProviderModelDraftValues"
  671. file: "packages/ui/src/settings/model-provider-section/ProviderModelMetadata.ts"
  672. - symbol: "ApiProviderModelRuntime"
  673. file: "apps/zcode-cli/packages/bootstrap/src/app/provider-registry-model-runtime.ts"
  674. - symbol: "compactActiveConversation"
  675. file: "apps/zcode-cli/packages/core/src/runtime/methods/compact-active.ts"
  676. - symbol: "zcodeSessionSettingsToZCodeConfigOptions"
  677. file: "packages/shared/src/zcode-agent-model-state.ts"
  678. invariants:
  679. - "Each complete Model Option Spec owns a restricted CEL map from its effective value to an RFC 7396 raw request-body patch. Config validation and runtime execution share @zcode/model-option-map; the adapter applies reasoningLevel then maxOutputTokens after AI SDK serialization and schema compatibility but before body-dependent signing, so reasoningMapping, AI SDK reasoning namespaces, and duplicate max-output authorities are not model facts."
  680. - id: "capability.model-selection"
  681. kind: "capability"
  682. label: "Model selection"
  683. aliases:
  684. - "select model"
  685. - "model switch"
  686. - "model picker"
  687. - "选择模型"
  688. - "模型选择"
  689. - "切换模型"
  690. docs:
  691. - "docs/ui/chat-model-select-menu.md"
  692. - "docs/chat/manual-model-switch-resolution-chain.md"
  693. - "docs/chat/new-task-model-resolution-chain.md"
  694. - "docs/ui/composer-text-draft-persistence.md"
  695. - "docs/working-memory/provider-refactor/steps/todo-12-model-selection-validation-boundary-cutover.md"
  696. - "docs/working-memory/provider-refactor/steps/todo-13-target-host-model-selection-authority.md"
  697. - "docs/working-memory/provider-refactor/steps/todo-14-post-refactor-mechanical-zero.md"
  698. - "docs/working-memory/provider-refactor/design/interaction/selection-state.md"
  699. - "docs/working-memory/provider-refactor/steps/todo-34-model-selection-async-state-and-repo-wiki-draft.md"
  700. - "docs/working-memory/provider-refactor/steps/todo-68-active-model-context-single-source.md"
  701. - "docs/working-memory/provider-refactor/steps/todo-87-selection-view-unified-resolution.md"
  702. - "docs/working-memory/provider-refactor/steps/todo-95-builtin-reasoning-map-simplification-and-fallback.md"
  703. - "docs/working-memory/provider-refactor/steps/todo-96-selection-offline-migration-and-resolution-consolidation.md"
  704. - "docs/working-memory/provider-refactor/steps/todo-97-subagent-markdown-in-place-migration-and-legacy-read-audit.md"
  705. - "docs/working-memory/provider-refactor/steps/todo-99-worker-account-selection-repair.md"
  706. codeSeeds:
  707. - symbol: "startManualCompact"
  708. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/commands/handlers/goal-compact.ts"
  709. - symbol: "ModelSelectionFacade"
  710. file: "packages/provider/src/facades.ts"
  711. - symbol: "ApiProviderModelRuntime"
  712. file: "apps/zcode-cli/packages/bootstrap/src/app/provider-registry-model-runtime.ts"
  713. - symbol: "useModelSelectionServiceView"
  714. file: "packages/ui/src/hooks/useModelSelectionView.ts"
  715. - symbol: "resolveEffectiveModelSelection"
  716. file: "packages/provider/src/effective-model-selection.ts"
  717. - symbol: "resolveAutomationSubmissionModelSelection"
  718. file: "packages/desktop/src/host/automationModelSelection.ts"
  719. - symbol: "createNodeModelSelectionFacade"
  720. file: "packages/provider-node/src/model-selection-facade.ts"
  721. - symbol: "resolveSubagentSelection"
  722. file: "apps/zcode-cli/packages/core/src/runtime/helpers/subagent-selection.ts"
  723. invariants:
  724. - "Manual compact freezes the submitted Composer ModelSelection through direct execution, FIFO queue and recovery; later menu edits cannot replace it. Both slash and context-panel entries share this contract. Auto compact retains its triggering Active Model."
  725. - "ModelSelectionFacade projects visible user candidates and change events only; authoritative selection validation occurs against the current process Registry when ModelFactory builds a Model. Internal products such as Off-Peak may preflight an exact hidden selection through the Registry, but that preflight never replaces final Model construction validation."
  726. - "User-visible model candidates, option specs, and preferredSelection come atomically from the target Workspace Host: local workspaces use Local Host and remote workspaces use Remote Host, with no Base/Local fallback while a remote target is waiting or disconnected. App Recent is isolated by workspaceKey = workspaceIdentity?.trim() || workspacePath; the Renderer may prefer a still-selectable Recent over Host preferredSelection, while final execution validation remains in the target Worker Registry and ModelFactory."
  727. - "ModelSelection stores provider/model identity and selected options. ModelFactory validates and freezes complete execution selections; it never fills missing reasoning. New default completion and an explicit user model-menu choice use the highest public level (Todo 88). Auxiliary low-cost calls explicitly use values[0], while invalid saved Session/Composer effective selections remain empty without fallback or empty-selection notifications."
  728. - "ModelSelection is future Model-creation intent, not a current execution fact. Each model step creates one immutable Active Model and uses that same object for Context current-model identity, model-aware tool projection, request options, and the Adapter request. Guide creates a new model step; execution-scoped Off-Peak and inherited Subagents must not mix their Active Model with Session Selection."
  729. - "Implemented (Todo 87/99): A target-host selection read accepts original intent and returns a caller-specific effectiveSelection. Account and Personal/Built-in updates recompute temporary results without overwriting intent; UI reads share subscriptions and bounded cancellable read recovery. Composer, Automation, and Bot consume this result at their own commit boundaries. Bound Bot reads the Session original selection, never a second Bot preference; explicit /model commits the complete Session selection immediately. Managed Worker explicit Subagents use the same local facade through dependency injection, including Workflow children; implicit Subagents inherit Parent and execution overrides take priority. Ordinary providers keep identity and account plans follow the current plan. Off-Peak keeps its original provider and Ticket; cross-account remapping is excluded. Frozen runs and history do not remap. No new send-time synchronization barrier or storage migration is introduced. Worker account receivedRevision acknowledges receipt, not Registry application."
  730. - id: "capability.provider-templates"
  731. kind: "capability"
  732. label: "Built-in Provider Templates and Personal Provider inheritance"
  733. aliases:
  734. - "Provider Template"
  735. - "provider template inheritance"
  736. - "template-created provider"
  737. - "供应商模板"
  738. - "模板创建供应商"
  739. docs:
  740. - "docs/working-memory/provider-refactor/design/registry/configuration.md"
  741. - "docs/working-memory/provider-refactor/design/registry/provider-and-model-configuration-overview.md"
  742. - "docs/working-memory/provider-refactor/steps/todo-55-provider-template-inheritance-cutover.md"
  743. - "docs/working-memory/provider-refactor/steps/todo-61-provider-template-picker-and-brand-metadata.md"
  744. codeSeeds:
  745. - symbol: "ProviderTemplateMap"
  746. file: "packages/provider/src/config/provider-config.ts"
  747. - symbol: "ProviderConfigResolver"
  748. file: "packages/provider/src/resolver.ts"
  749. - symbol: "ProviderSettingsFacade"
  750. file: "packages/provider/src/facades.ts"
  751. - symbol: "ProviderTemplatePicker"
  752. file: "packages/ui/src/settings/model-provider-section/ProviderTemplatePicker.tsx"
  753. - symbol: "resolveBuiltinProviderLogoAsset"
  754. file: "packages/ui/src/settings/model-provider-section/ProviderLogo.tsx"
  755. invariants:
  756. - "A Provider Template is an inheritance baseline, not a Provider: it has a templateId but no providerId, group, Registry identity, execution state, or recursive Template parent."
  757. - "A Template-created Personal Provider has its own providerId and resolves Template -> Personal; runtime execution uses only the resulting Effective Provider identity, API, Access, and Model Config."
  758. - "Account Providers remain concrete Built-in Provider roots and are constrained by Account Config; ordinary API services are Templates that create Personal Provider instances."
  759. - "ProviderTemplate is a domain shell containing localized name metadata and a Provider Config Overlay; Model Config Rules remain centralized so their precedence stays explicit."
  760. - "Provider branding is declared once by Provider Config.logo; the UI logo resource table maps open built-in keys to packaged theme assets and unknown keys fall back without affecting executability."
  761. - id: "capability.plan-entitlements"
  762. kind: "capability"
  763. label: "Plan identity, entitlements, quota, and billing"
  764. aliases:
  765. - "Coding Plan"
  766. - "Team Plan"
  767. - "Start Plan"
  768. - "套餐权益"
  769. - "套餐额度"
  770. docs:
  771. - "docs/usage-stats-app-coding-plan-split.md"
  772. - "docs/zai-start-plan-provider.md"
  773. - "docs/model-provider-family-merge.md"
  774. - "docs/input-model-provider-team-plan-linkage.md"
  775. - "docs/working-memory/provider-refactor/steps/todo-32-team-plan-settings-effective-provider-boundary.md"
  776. - "docs/working-memory/provider-refactor/steps/todo-51-provider-access-consumer-and-offpeak-auth-closeout.md"
  777. codeSeeds:
  778. - symbol: "ModelProviderSectionDetail"
  779. file: "packages/ui/src/settings/model-provider-section/Detail.tsx"
  780. - symbol: "resolveTeamScopedPlanNavItem"
  781. file: "packages/ui/src/settings/model-provider-section/Detail.tsx"
  782. - symbol: "appendSubscribedTeamPlanItems"
  783. file: "packages/ui/src/settings/model-provider-section/providerFamilyConnectionVisibility.ts"
  784. - symbol: "useCodingPlanEntitlements"
  785. file: "packages/ui/src/settings/model-provider-section/useCodingPlanEntitlements.ts"
  786. - symbol: "buildVisibleFamilyConnectionItems"
  787. file: "packages/ui/src/settings/model-provider-section/providerFamilyConnectionVisibility.ts"
  788. - symbol: "resolveLatestModelProviderFamilyConnectionSelection"
  789. file: "packages/ui/src/lib/modelProviderFamilyConnectionSelection.ts"
  790. invariants:
  791. - "Team Plan entitlement, quota, credential, and error state controls only the plan status card and related actions. Provider Settings renders Provider and Model facts from ProviderSettingsView effectiveConfig; entitlement status never hides an existing Effective Provider or causes Renderer to reapply Account Overlay."
  792. - "An active Start Plan remains independently queryable and selectable alongside personal or Team Coding Plan."
  793. - "Start remains visible in settings regardless of entitlement; executable models follow Registry availability. No inactive Start silently falls back to paid quota. Recommendation shares quota identity and requires a successful sample within 60 seconds, including side first-input submission."
  794. - id: "capability.app-usage"
  795. kind: "capability"
  796. label: "App Usage analytics from ZCode CLI usage facts"
  797. aliases:
  798. - "App Usage"
  799. - "usage stats"
  800. - "应用用量"
  801. - "用量统计"
  802. docs:
  803. - "docs/product-capability-map.md"
  804. - "docs/usage-stats-app-coding-plan-split.md"
  805. - "apps/zcode-cli/docs/design/v2/usage-observability.md"
  806. - id: "capability.data-observability"
  807. kind: "capability"
  808. label: "Product telemetry, runtime observability, and monitoring"
  809. aliases:
  810. - "telemetry"
  811. - "ARMS"
  812. - "monitoring"
  813. - "埋点"
  814. - "监控"
  815. - "可观测性"
  816. docs:
  817. - "docs/product-capability-map.md"
  818. - "docs/monitoring/performance-telemetry-catalog.md"
  819. - "docs/monitoring/business-monitoring.md"
  820. - "docs/monitoring/event-report-delivery-reliability.md"
  821. - "docs/monitoring/zcode-cli-resource-telemetry.md"
  822. - "docs/monitoring/process-resource-telemetry.md"
  823. - "docs/monitoring/process-resource-telemetry-fixes.md"
  824. - "docs/monitoring/zcode-data-size-arms-telemetry.md"
  825. - "docs/monitoring/mcp-process-arms-telemetry.md"
  826. - "docs/monitoring/remote-usage-telemetry-v1.md"
  827. - "docs/trace/model-attempt-error-diagnostics.md"
  828. codeSeeds:
  829. - symbol: "sanitizeTelemetryError"
  830. file: "apps/zcode-cli/packages/telemetry/src/error-sanitizer.ts"
  831. - symbol: "TerminalStreamChunkError"
  832. file: "apps/zcode-cli/packages/adapters/src/model/runner-retry.ts"
  833. - symbol: "createZCodeProcessResourceSampler"
  834. file: "apps/zcode-cli/packages/bootstrap/src/process-resource-sampler.ts"
  835. - symbol: "createZCodeAgentService"
  836. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  837. - symbol: "ingestCliResourceSample"
  838. file: "packages/desktop/src/main/processResourceCliSource.ts"
  839. - symbol: "registerHostServiceResourceTelemetry"
  840. file: "packages/desktop/src/host/hostServiceResourceTelemetry.ts"
  841. - symbol: "createMcpTelemetryTracker"
  842. file: "apps/zcode-cli/packages/adapters/src/mcp/telemetry.ts"
  843. - symbol: "reportMcpTelemetryToArms"
  844. file: "packages/desktop/src/main/desktopMcpTelemetry.ts"
  845. invariants:
  846. - "Resource telemetry stays outside desktop continuous and mobile replayable task delivery."
  847. - "Host runtime environment identity isolates equal-hardware remote samples; identity is never an ARMS property."
  848. - "Only a Server advertising processResourceTelemetry receives resource subscriptions; old Server connections remain usable."
  849. - "Bash completion tokens are deduplicated at the main resource outlet across Host processes and omitted from ARMS."
  850. - id: "capability.renderer-user-action-trace"
  851. kind: "capability"
  852. label: "Desktop Renderer semantic user action trace"
  853. aliases:
  854. - "renderer action trace"
  855. - "ui_action"
  856. - "Renderer 用户操作 Trace"
  857. docs:
  858. - "docs/trace/desktop-renderer-user-action-trace.md"
  859. codeSeeds:
  860. - symbol: "USER_ACTION_CATALOG"
  861. file: "packages/ui/src/lib/userActionTraceCatalog.ts"
  862. - symbol: "RendererUserActionTelemetry"
  863. file: "packages/ui/src/lib/userActionTelemetry.ts"
  864. - symbol: "createRendererActionTraceBroker"
  865. file: "packages/desktop/src/main/rendererActionTraceBroker.ts"
  866. invariants:
  867. - "Only Electron Desktop Renderer creates ui_action spans; Web/mobile remain no-op."
  868. - "Host, CLI, RPC and ZCode Protocol receive no trace changes."
  869. - "Product /event/report remains unchanged and separate."
  870. - id: "capability.zcode-data-size-telemetry"
  871. kind: "capability"
  872. label: "ZCode local data directory size telemetry"
  873. aliases:
  874. - "ZCode data size"
  875. - "disk usage telemetry"
  876. - "ZCode 数据目录占用"
  877. - "磁盘占用埋点"
  878. docs:
  879. - "docs/monitoring/zcode-data-size-arms-telemetry.md"
  880. - "docs/monitoring/performance-monitoring.md"
  881. codeSeeds:
  882. - symbol: "createZCodeDataSizeTelemetryScheduler"
  883. file: "packages/desktop/src/main/desktopZCodeDataSizeTelemetry.ts"
  884. - symbol: "scanZCodeDataDirectory"
  885. file: "packages/desktop/src/main/zcodeDataSizeScanner.ts"
  886. - symbol: "scanZCodeDataDirectoryInWorker"
  887. file: "packages/desktop/src/main/zcodeDataSizeWorkerClient.ts"
  888. - symbol: "writeZCodeDataSizeTelemetryState"
  889. file: "packages/desktop/src/main/zcodeDataSizeTelemetryState.ts"
  890. - symbol: "getZCodeDataRootDir"
  891. file: "packages/services/src/paths.ts"
  892. invariants:
  893. - "Measure only the local getZCodeDataRootDir logical byte size; never report paths, file names, workspace ids or remote targets."
  894. - "Directory traversal runs in a Worker and stays outside conversation continuous/replayable delivery."
  895. - "A running ZCode task always blocks collection; successful reports are limited to one per device per 24 hours."
  896. - id: "capability.resource-manager"
  897. kind: "capability"
  898. label: "Resource Manager window (CPU / memory by base services, built-in plugins, community plugins)"
  899. aliases:
  900. - "资源管理器"
  901. - "存储管理"
  902. - "Storage management"
  903. - "Resource Manager"
  904. - "Process Monitor"
  905. - "进程监视器"
  906. - "CPU 内存占用"
  907. - "网络请求"
  908. - "Network requests"
  909. docs:
  910. - "docs/electron/resource-manager.md"
  911. - "docs/electron/resource-manager-network.md"
  912. - "docs/electron/process-naming.md"
  913. - "docs/settings-storage-management.md"
  914. - "docs/windows-caption-help-menu.md"
  915. codeSeeds:
  916. - symbol: "WorkspaceHelpMenuButton"
  917. file: "packages/ui/src/WorkspaceHelpMenuButton.tsx"
  918. - symbol: "buildResourceUsageSnapshot"
  919. file: "packages/desktop/src/main/resourceManagerWindow.ts"
  920. - symbol: "requestHostResourceUsage"
  921. file: "packages/desktop/src/main/resourceManagerHostSampling.ts"
  922. - symbol: "createHostResourceUsageResponder"
  923. file: "packages/desktop/src/host/hostResourceUsage.ts"
  924. - symbol: "attributeHostProcessTree"
  925. file: "packages/services/src/process/processResourceSampler.ts"
  926. - symbol: "collectLocalRuntimeChildProcesses"
  927. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  928. - symbol: "listChildProcesses"
  929. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/process-child-processes.ts"
  930. - symbol: "registerResourceManagerStorageIpc"
  931. file: "packages/desktop/src/main/resourceManagerStorage.ts"
  932. - symbol: "startResourceManagerNetwork"
  933. file: "packages/desktop/src/main/resourceManagerNetwork.ts"
  934. - symbol: "LocalRuntimeNetworkCapture"
  935. file: "packages/services/src/zcode-agent/localRuntimeNetworkCapture.ts"
  936. - symbol: "createStorageService"
  937. file: "packages/services/src/storage/app/storageService.ts"
  938. - symbol: "classifyStoragePath"
  939. file: "packages/services/src/storage/domain/storageCatalog.ts"
  940. invariants:
  941. - "Electron main never spawns an external process for sampling; external process CPU/RSS is sampled inside the window Host only while a snapshot request is in flight."
  942. - "Plugin attribution comes from the CLI process/childProcesses request (pid + mcpSource + pluginName); official marketplace MCP trees and browser-use guest renderers are built-in plugins, every other MCP tree is a community plugin."
  943. - "CPU is machine-normalized (100% = all logical cores) for every row so group subtotals and the app total are additive."
  944. - "The window is desktop-only and outside conversation continuous/replayable delivery; it must not change the 60s CLI resource telemetry cadence or MCP memory telemetry."
  945. - "Network capture runs only for the resource-manager window lifetime, records bounded metadata from local Main/Host/App Renderer/CLI, and excludes MCP, subprocesses, remote CLI and external browser sessions without changing proxy routing."
  946. - id: "capability.engineering-infrastructure"
  947. kind: "capability"
  948. label: "Engineering infrastructure outside the product runtime"
  949. aliases:
  950. - "engineering infrastructure"
  951. - "developer productivity"
  952. - "工程基础设施"
  953. - "研发效能"
  954. docs:
  955. - "docs/product-capability-map.md"
  956. - "docs/product-capability-map-engineering-infrastructure.md"
  957. - id: "capability.build-release-engineering"
  958. kind: "capability"
  959. label: "Build and release engineering"
  960. aliases:
  961. - "CI/CD"
  962. - "release pipeline"
  963. - "packaging"
  964. - "构建发布"
  965. - "发版"
  966. docs:
  967. - "docs/product-capability-map-engineering-infrastructure.md"
  968. - "docs/desktop/zcode-preview-packaging.md"
  969. codeSeeds:
  970. - symbol: "runDesktopProductionBuild"
  971. file: "packages/desktop/scripts/run-production-build.mjs"
  972. - id: "capability.development-storage-isolation"
  973. kind: "capability"
  974. label: "Local development user-data isolation"
  975. aliases:
  976. - "development data root"
  977. - "zcode-dev"
  978. - "dev storage profile"
  979. - "开发态数据隔离"
  980. - "开发数据库隔离"
  981. docs:
  982. - "docs/desktop/configurable-data-directory.md"
  983. - "docs/testing/desktop-e2e-container.md"
  984. codeSeeds:
  985. - symbol: "resolveZCodeStorageProfile"
  986. file: "packages/shared/src/storageProfile.ts"
  987. - symbol: "applyEarlyDataBaseDirBootstrap"
  988. file: "packages/desktop/src/main/desktopDataBaseDirBootstrap.ts"
  989. - symbol: "resolveZCodeStorageRoot"
  990. file: "apps/zcode-cli/packages/adapters/src/storage/zcode-storage-root.ts"
  991. - id: "capability.embedded-native-search"
  992. kind: "capability"
  993. label: "Embedded native search runtime"
  994. aliases:
  995. - "native search"
  996. - "bfs"
  997. - "ugrep"
  998. - "embedded search"
  999. - "原生搜索"
  1000. docs:
  1001. - "docs/runtime-tools/embedded-search-native-build.md"
  1002. - "docs/runtime-tools/ripgrep-runtime.md"
  1003. codeSeeds:
  1004. - symbol: "resolveNativeSearchPrebuiltPlan"
  1005. file: "scripts/native-search-tools-config.mjs"
  1006. - symbol: "buildRuntimeToolEnvPatch"
  1007. file: "packages/services/src/runtime-tools/runtimeToolResolver.ts"
  1008. - symbol: "buildEmbeddedSearchPreludeContent"
  1009. file: "apps/zcode-cli/packages/adapters/src/exec/embedded-search-prelude.ts"
  1010. - id: "capability.test-automation-platform"
  1011. kind: "capability"
  1012. label: "Shared E2E and replay test automation platform"
  1013. aliases:
  1014. - "E2E"
  1015. - "test automation"
  1016. - "capture replay"
  1017. - "测试自动化"
  1018. - "回放测试"
  1019. docs:
  1020. - "docs/product-capability-map-engineering-infrastructure.md"
  1021. - "docs/testing/conversation-session-e2e-development-workflow.md"
  1022. - "docs/testing/desktop-e2e-container.md"
  1023. codeSeeds:
  1024. - symbol: "config"
  1025. file: "packages/desktop/wdio.conf.ts"
  1026. - symbol: "startConversationModelProviderReplayServer"
  1027. file: "packages/desktop/test/e2e/helpers/model-provider-replay.ts"
  1028. - id: "capability.quality-intelligence"
  1029. kind: "capability"
  1030. label: "Quality intelligence and engineering governance"
  1031. aliases:
  1032. - "quality data"
  1033. - "E2E report"
  1034. - "coverage governance"
  1035. - "质量数据"
  1036. - "覆盖率治理"
  1037. docs:
  1038. - "docs/product-capability-map-engineering-infrastructure.md"
  1039. - "docs/testing/desktop-e2e-reporting.md"
  1040. - "docs/testing/e2e-failure-artifact-report-upload.md"
  1041. codeSeeds:
  1042. - symbol: "createE2EReporter"
  1043. file: "packages/desktop/test/e2e/reporting/e2e-reporting.ts"
  1044. - symbol: "createE2EReportViewerUrl"
  1045. file: "packages/e2e-report/src/node/index.ts"
  1046. - id: "capability.office-computer-use-incubation"
  1047. kind: "capability"
  1048. label: "Office Suite and Computer Use incubation"
  1049. aliases:
  1050. - "Office Suite"
  1051. - "Office preview"
  1052. - "Office editing"
  1053. - "Computer Use"
  1054. - "办公套件"
  1055. - "文档预览编辑"
  1056. - "计算机操作"
  1057. docs:
  1058. - "docs/product-capability-map.md"
  1059. - "docs/product-capability-map-office-computer-use.md"
  1060. - id: "capability.office-suite"
  1061. kind: "capability"
  1062. label: "Office document preview, editing, and Agent production"
  1063. aliases:
  1064. - "DOCX"
  1065. - "XLSX"
  1066. - "PPTX"
  1067. - "PDF preview"
  1068. - "文档编辑"
  1069. - "表格编辑"
  1070. - "演示文稿编辑"
  1071. docs:
  1072. - "docs/product-capability-map-office-computer-use.md"
  1073. - "docs/document-skills-plugin.md"
  1074. - id: "capability.pptx-element-reference"
  1075. kind: "capability"
  1076. label: "PPTX preview element reference and verified OOXML update"
  1077. aliases:
  1078. - "PPTX element selection"
  1079. - "presentation element reference"
  1080. - "PPTX resolver"
  1081. - "PPTX 元素引用"
  1082. - "演示文稿元素选择"
  1083. docs:
  1084. - "docs/ui/pptx-preview.md"
  1085. - "docs/conversation-session-case-catalog.md"
  1086. codeSeeds:
  1087. - symbol: "PresentationPreviewDocument"
  1088. file: "packages/ui/src/presentation/types.ts"
  1089. - symbol: "serializeComposerPromptContexts"
  1090. file: "packages/ui/src/v4/composer/composerPromptContexts.ts"
  1091. - id: "capability.computer-use"
  1092. kind: "capability"
  1093. label: "Computer Use observation, input, task UX, and takeover"
  1094. aliases:
  1095. - "CUA"
  1096. - "zcode-cua"
  1097. - "Computer Use plugin"
  1098. - "computer-use"
  1099. - "desktop control"
  1100. - "get_app_state"
  1101. - "open_application"
  1102. - "open app"
  1103. - "打开应用"
  1104. - "request_access"
  1105. - "CUA permission onboarding"
  1106. - "Read app interface"
  1107. - "读取应用界面"
  1108. - "电脑控制"
  1109. - "桌面操作"
  1110. docs:
  1111. - "docs/product-capability-map-office-computer-use.md"
  1112. - "docs/cua-permission-broker/zcode-cua-permission-broker.md"
  1113. - "docs/cua-get-app-state-user-title.md"
  1114. - "docs/testing/cua-e2e-case-catalog.md"
  1115. - "docs/cua/2026-08-25-cua-request-access-onboarding-spec.md"
  1116. - "docs/superpowers/specs/2026-08-23-computer-use-plugin-display-name-spec.md"
  1117. codeSeeds:
  1118. - symbol: "resolvePluginDisplayName"
  1119. file: "packages/ui/src/settings/pluginStoreListing.ts"
  1120. - symbol: "OFFICIAL_PLUGIN_DEFINITIONS"
  1121. file: "apps/zcode-cli/packages/bootstrap/src/app/official-plugin-definitions.ts"
  1122. - file: "apps/zcode-cli/packages/zcode-cua-plugin/skills/computer-use/SKILL.md"
  1123. - id: "capability.conversation-runtime"
  1124. kind: "capability"
  1125. label: "Conversation and session runtime"
  1126. aliases:
  1127. - "conversation"
  1128. - "chat"
  1129. - "session"
  1130. - "turn steer"
  1131. - "guide"
  1132. - "follow-up queue"
  1133. - "对话"
  1134. - "会话"
  1135. - "引导"
  1136. - "消息队列"
  1137. docs:
  1138. - "docs/conversation-protocol-declaration.md"
  1139. - "docs/conversation-product-state-space.md"
  1140. - "docs/chat/interaction-behavior.md"
  1141. - "docs/ui/chat-message-queue.md"
  1142. - "docs/architecture/message-flow.md"
  1143. - "docs/v4-refactor/17-cold-resume-runtime-activation.md"
  1144. codeSeeds:
  1145. - symbol: "ConversationV4Gateway.normalizeRuntimeEventSequence"
  1146. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/v4-gateway.ts"
  1147. - symbol: "startPromptTurn"
  1148. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/commands/prompt-turn.ts"
  1149. - symbol: "sendText"
  1150. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/commands/handlers/session-flow.ts"
  1151. - symbol: "drainPendingInput"
  1152. file: "apps/zcode-cli/packages/core/src/runtime/methods/steering.ts"
  1153. invariants:
  1154. - "3.12.2: all new and cold-resumed runtimes normalize compatibility budget inputs to preflight-v1; runtime preferences never await client/configs for budgeting."
  1155. - id: "capability.selection-side-chat"
  1156. kind: "capability"
  1157. label: "Selection side conversation and App slash shortcuts"
  1158. aliases:
  1159. - "/side"
  1160. - "/btw"
  1161. - "selection side chat"
  1162. - "辅助对话"
  1163. docs:
  1164. - "docs/ui/conversation-selection-side-chat.md"
  1165. - "docs/conversation-session-case-catalog.md"
  1166. codeSeeds:
  1167. - symbol: "handleOpenSelectionSideConversation"
  1168. file: "packages/ui/src/v4/SessionPane.tsx"
  1169. - symbol: "createSelectionSideConversation"
  1170. file: "apps/zcode-cli/packages/core/src/runtime/methods/session-fork.ts"
  1171. - id: "capability.provider-retry-live-tail"
  1172. kind: "capability"
  1173. label: "Conversation provider retry live-tail presentation"
  1174. aliases:
  1175. - "apiRetry"
  1176. - "stream recovery retry status"
  1177. - "provider retry live tail"
  1178. - "模型重连状态"
  1179. - "重连次数"
  1180. docs:
  1181. - "docs/v4-composer-api-retry-status.md"
  1182. - "apps/zcode-cli/docs/design/v2/model/stream-error-retry.md"
  1183. - "docs/conversation-session-case-catalog.md"
  1184. codeSeeds:
  1185. - symbol: "ChatApiRetryStatus"
  1186. file: "packages/ui/src/chat-input-toolbar/display.tsx"
  1187. - symbol: "TurnChatLoadingSlot"
  1188. file: "packages/ui/src/v4/ConversationTurnGroup.tsx"
  1189. - symbol: "ProductProjection"
  1190. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  1191. - symbol: "zcodeApiRetryFromStreamRecoveryPayload"
  1192. file: "packages/shared/src/zcode-api-retry-status.ts"
  1193. - id: "capability.model-stream-recovery"
  1194. kind: "capability"
  1195. label: "Model SSE recovery from a provider-safe anchor"
  1196. aliases:
  1197. - "partial output recovery"
  1198. - "reasoning-only retry"
  1199. - "thinking stall recovery"
  1200. - "SSE 断流恢复"
  1201. - "思考阶段重试"
  1202. docs:
  1203. - "apps/zcode-cli/docs/design/v2/model/stream-error-retry.md"
  1204. - "apps/zcode-cli/docs/design/v2/model/streaming-tool-execution-and-recovery.md"
  1205. - "docs/testing/conversation-session-environment-fault-catalog.md"
  1206. codeSeeds:
  1207. - symbol: "recoverPartialAssistantOutputFailure"
  1208. file: "apps/zcode-cli/packages/core/src/runtime/methods/streaming-recovery.ts"
  1209. - symbol: "createStreamingToolCoordinator"
  1210. file: "apps/zcode-cli/packages/core/src/runtime/methods/streaming-tool-coordinator.ts"
  1211. - id: "capability.model-empty-completion-retry"
  1212. kind: "capability"
  1213. label: "Model zero-output completion retry"
  1214. aliases:
  1215. - "empty model response retry"
  1216. - "zero-output completion retry"
  1217. - "空返回重试"
  1218. - "finish=other 空响应"
  1219. docs:
  1220. - "apps/zcode-cli/docs/design/v2/model/stream-error-retry.md"
  1221. codeSeeds:
  1222. - symbol: "canRetryEmptyCompletion"
  1223. file: "apps/zcode-cli/packages/adapters/src/model/empty-completion-retry.ts"
  1224. - symbol: "isZeroOutputModelCompletion"
  1225. file: "apps/zcode-cli/packages/adapters/src/model/runner-diagnostics.ts"
  1226. - symbol: "runGenerateText"
  1227. file: "apps/zcode-cli/packages/adapters/src/model/runner-generate.ts"
  1228. - symbol: "runStreamText"
  1229. file: "apps/zcode-cli/packages/adapters/src/model/runner-stream.ts"
  1230. - id: "capability.assistant-file-preview-links"
  1231. kind: "capability"
  1232. label: "Assistant file preview cards"
  1233. aliases:
  1234. - "Assistant Preview Cards"
  1235. - "回复文件预览卡片"
  1236. docs:
  1237. - "docs/ui/assistant-preview-cards.md"
  1238. codeSeeds:
  1239. - symbol: "buildAssistantPreviewCards"
  1240. file: "packages/ui/src/lib/assistantPreviewCards.ts"
  1241. - symbol: "extractAssistantFileReferences"
  1242. file: "packages/ui/src/lib/assistantFileReferences.ts"
  1243. - symbol: "resolveMarkdownFileLink"
  1244. file: "packages/ui/src/lib/markdownFileLink.ts"
  1245. - symbol: "useAssistantPreviewCardsForAssistantTextRow"
  1246. file: "packages/ui/src/v4/useAssistantPreviewCardsForRow.ts"
  1247. - symbol: "SessionPane"
  1248. file: "packages/ui/src/v4/SessionPane.tsx"
  1249. - id: "capability.session-residency-management"
  1250. kind: "capability"
  1251. label: "CLI session resident pool and cold deactivation"
  1252. aliases:
  1253. - "session resident pool"
  1254. - "session residency"
  1255. - "session deactivation"
  1256. - "session LRU"
  1257. - "会话常驻池"
  1258. - "会话内存回收"
  1259. - "会话去激活"
  1260. docs:
  1261. - "docs/session-idle-deactivation.md"
  1262. - "apps/zcode-cli/docs/design/v2/session-idle-deactivation.md"
  1263. codeSeeds:
  1264. - symbol: "SessionResidentPool"
  1265. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/session-resident-pool.ts"
  1266. - symbol: "deactivateSessionRecord"
  1267. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/session-residency.ts"
  1268. - symbol: "hasResidencyBlockingWork"
  1269. file: "apps/zcode-cli/packages/core/src/runtime/methods/residency.ts"
  1270. - symbol: "acquireSessionResidencyFinalization"
  1271. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/session-residency.ts"
  1272. - symbol: "clearSession"
  1273. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/command-inbox.ts"
  1274. - id: "capability.ask-user-question-auto-resolution"
  1275. kind: "capability"
  1276. label: "AskUserQuestion auto-resolution preference"
  1277. aliases:
  1278. - "AskUserQuestion countdown"
  1279. - "ask user question auto continue"
  1280. - "提问自动继续"
  1281. - "提问自动倒计时"
  1282. docs:
  1283. - "docs/ask-user-question-auto-resolution.md"
  1284. - "docs/conversation-session-case-catalog.md"
  1285. - id: "capability.project-memory"
  1286. kind: "capability"
  1287. label: "CLI project Memory"
  1288. aliases:
  1289. - "Memory Extraction"
  1290. - "headless Memory Extraction gate"
  1291. - "project memory"
  1292. - "持久 Memory"
  1293. docs:
  1294. - "apps/zcode-cli/docs/design/v2/memory/README.md"
  1295. codeSeeds:
  1296. - symbol: "MemorySettingsSection"
  1297. file: "packages/ui/src/settings/MemorySettingsSection.tsx"
  1298. - symbol: "IMemoryService"
  1299. file: "packages/services/src/memory/memory.ts"
  1300. - id: "capability.conversation-query-navigation"
  1301. kind: "capability"
  1302. label: "Complete conversation query navigation"
  1303. aliases:
  1304. - "conversation query navigator"
  1305. - "conversation query map"
  1306. - "turn navigator"
  1307. - "对话问题导航"
  1308. - "问题目录"
  1309. docs:
  1310. - "docs/ui/conversation-turn-navigator.md"
  1311. - id: "capability.markdown-image-gallery"
  1312. kind: "capability"
  1313. label: "Responsive Markdown image gallery and preview"
  1314. aliases:
  1315. - "markdown images"
  1316. - "image gallery"
  1317. - "Markdown 图片"
  1318. - "图片画廊"
  1319. docs:
  1320. - "docs/ui/markdown-preview-renderers.md"
  1321. codeSeeds:
  1322. - symbol: "MarkdownImage"
  1323. file: "packages/ui/src/components/ai-elements/markdown-image.tsx"
  1324. - symbol: "normalizeConsecutiveMarkdownImageBlocks"
  1325. file: "packages/ui/src/components/ai-elements/markdown-image.tsx"
  1326. - id: "capability.shared-image-preview"
  1327. kind: "capability"
  1328. label: "Shared conversation image gallery"
  1329. aliases:
  1330. - "BUA image preview"
  1331. - "Browser Use screenshot preview"
  1332. - "node_repl image lightbox"
  1333. - "message image thumbnails"
  1334. - "消息图片缩略图"
  1335. - "共享图片预览"
  1336. - "图片标注编辑"
  1337. - "图片编辑保存到对话"
  1338. invariants:
  1339. - "Preview annotations are local drafts; saving appends a new PNG through focused Composer attachment admission without sending or replacing the original."
  1340. - "Capture the Composer receiver before export and reject late results after preview or Composer scope changes."
  1341. docs:
  1342. - "docs/ui/shared-image-preview-dialog.md"
  1343. codeSeeds:
  1344. - symbol: "ImagePreviewDialog"
  1345. file: "packages/ui/src/components/ai-elements/image-preview-dialog.tsx"
  1346. - symbol: "ImageThumbnailGallery"
  1347. file: "packages/ui/src/components/ai-elements/image-thumbnail-gallery.tsx"
  1348. - symbol: "NodeReplImageGrid"
  1349. file: "packages/ui/src/ToolCallBlocks/renderers/nodeReplImageGrid.tsx"
  1350. - id: "capability.browser-screenshot-surface"
  1351. kind: "capability"
  1352. label: "Browser Use background screenshot surface"
  1353. aliases:
  1354. - "BUA background screenshot"
  1355. - "browser screenshot surface"
  1356. - "backgroundThrottling"
  1357. - "浏览器后台截图"
  1358. - "后台截图表面"
  1359. docs:
  1360. - "docs/superpowers/specs/2026-07-23-browser-background-screenshot-surface-design.md"
  1361. - "docs/superpowers/specs/2026-07-24-browser-screenshot-negative-zoom-design.md"
  1362. - "docs/browser-use/2026-07-15-browser-turn-final-screenshot-spec.md"
  1363. codeSeeds:
  1364. - symbol: "BrowserGuestManager"
  1365. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  1366. - symbol: "DesktopBrowserScreenshotSurfaceCoordinator"
  1367. file: "packages/desktop/src/main/browserView/browserScreenshotSurfaceCoordinator.ts"
  1368. - id: "capability.browser-webview-video-recording"
  1369. kind: "capability"
  1370. label: "Browser Use embedded WebView scenario video recording"
  1371. aliases:
  1372. - "Browser Use recording"
  1373. - "IAB video recording"
  1374. - "WebView screencast"
  1375. - "内置浏览器录屏"
  1376. - "WebView 视频录制"
  1377. docs:
  1378. - "docs/browser-use/2026-08-12-browser-webview-video-recording-spec.md"
  1379. - "docs/browser-use/2026-08-14-browser-use-plugin-version-0-3-0-spec.md"
  1380. - "docs/browser-use/browser-use-plugin-runtime-boundary.md"
  1381. codeSeeds:
  1382. - symbol: "BrowserGuestManager"
  1383. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  1384. - symbol: "Tab"
  1385. file: "apps/zcode-cli/packages/core/src/browser-client/facade.ts"
  1386. - symbol: "createBrowserControlMainBridge"
  1387. file: "packages/desktop/src/host/browserControlMainBridge.ts"
  1388. - symbol: "materializeBrowserRecordingArtifact"
  1389. file: "packages/desktop/src/host/browserRecordingArtifactMaterializer.ts"
  1390. - symbol: "recordBrowserVideo"
  1391. file: "packages/desktop/src/main/browserView/browserVideoRecorder.ts"
  1392. - id: "capability.embedded-browser-network-policy"
  1393. kind: "capability"
  1394. label: "Desktop renderer and embedded Browser explicit proxy and custom CA policy"
  1395. aliases:
  1396. - "embedded browser custom CA"
  1397. - "embedded browser proxy"
  1398. - "self-signed certificate in Browser"
  1399. - "内置浏览器自签名证书"
  1400. - "内置浏览器代理"
  1401. docs:
  1402. - "apps/zcode-cli/docs/design/v2/model/http-proxy.md"
  1403. - "docs/testing/browser-use-coverage-matrix.md"
  1404. codeSeeds:
  1405. - symbol: "applyDesktopChromiumNetworkPolicies"
  1406. file: "packages/desktop/src/main/desktopNetworkPolicy.ts"
  1407. - symbol: "EMBEDDED_BROWSER_PARTITION"
  1408. file: "packages/desktop/src/main/browserDataManager.ts"
  1409. - symbol: "BrowserViewportSurface"
  1410. file: "packages/ui/src/browser-use/BrowserViewportSurface.tsx"
  1411. - id: "capability.host-api-network-policy"
  1412. kind: "capability"
  1413. label: "Window Host app-managed API explicit proxy, No Proxy, and custom CA policy"
  1414. aliases:
  1415. - "Host API proxy"
  1416. - "Host network egress"
  1417. - "Host OAuth proxy"
  1418. - "Host 外部 API 代理"
  1419. - "Host 网络出口"
  1420. docs:
  1421. - "docs/superpowers/specs/2026-08-25-host-api-proxy-design.md"
  1422. - "docs/architecture/external-api-client.md"
  1423. - "apps/zcode-cli/docs/design/v2/model/http-proxy.md"
  1424. codeSeeds:
  1425. - symbol: "NodeApiClient"
  1426. file: "packages/services/src/providers/api/nodeApiClient.ts"
  1427. - symbol: "createLocalServices"
  1428. file: "packages/services/src/node.ts"
  1429. - symbol: "createRemoteWorkspaceServiceCollection"
  1430. file: "packages/desktop/src/host/remoteWorkspaceServiceCollection.ts"
  1431. invariants:
  1432. - "AppSettings is the only Host app-managed proxy, No Proxy, and custom CA authority; ambient shell proxy and CA variables remain sanitized."
  1433. - "The first phase injects a request-scoped transport into NodeApiClient and never installs a process-global dispatcher."
  1434. - "Desktop-attached remote app-global services use the desktop Host policy; server remote services retain server authority."
  1435. - "Conversation delivery, workspace identity, Agent/CLI, Electron Session, Bot, telemetry, object-upload, WebSocket, SSH, and RPC behavior remain unchanged."
  1436. - id: "capability.embedded-browser-responsive-viewport"
  1437. kind: "capability"
  1438. label: "Embedded browser free-size responsive viewport"
  1439. aliases:
  1440. - "browser free mode"
  1441. - "responsive browser viewport"
  1442. - "自由尺寸"
  1443. - "内置浏览器自由模式"
  1444. - "浏览器显示偏好"
  1445. - "恢复上次浏览器尺寸"
  1446. docs:
  1447. - "docs/browser-use/2026-07-15-responsive-browser-viewport-spec.md"
  1448. - "docs/testing/browser-use-coverage-matrix.md"
  1449. codeSeeds:
  1450. - symbol: "ResponsiveBrowserViewport"
  1451. file: "packages/ui/src/browser-use/ResponsiveBrowserViewport.tsx"
  1452. - symbol: "ResponsiveBrowserResizeHandles"
  1453. file: "packages/ui/src/browser-use/ResponsiveBrowserResizeHandles.tsx"
  1454. - symbol: "useResponsiveBrowserViewportControl"
  1455. file: "packages/ui/src/browser-use/useResponsiveBrowserViewportControl.ts"
  1456. - id: "capability.browser-tab-residency"
  1457. kind: "capability"
  1458. label: "Desktop embedded Browser 32-tab hard limit and process-local lifetime"
  1459. aliases:
  1460. - "browser tab hard limit"
  1461. - "logical tab limit"
  1462. - "browser tab limit"
  1463. - "browser tabs cleared on restart"
  1464. - "Browser 标签上限"
  1465. - "浏览器逻辑 Tab 上限"
  1466. - "内置浏览器 Tab 上限"
  1467. - "重启清空浏览器 Tab"
  1468. - "Browser Guest route residency"
  1469. - "自动化页后台 Guest"
  1470. docs:
  1471. - "docs/browser-use/2026-07-31-browser-tab-residency-budget-spec.md"
  1472. - "docs/browser-use/2026-07-12-browser-tab-process-lifetime-spec.md"
  1473. - "docs/browser-use/2026-07-14-browser-tab-conversation-isolation-spec.md"
  1474. - "docs/browser-use/2026-08-25-browser-guest-route-residency-spec.md"
  1475. codeSeeds:
  1476. - symbol: "BrowserGuestManager"
  1477. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  1478. - symbol: "AnimatedSidePanePanel"
  1479. file: "packages/ui/src/app-shell/AnimatedSidePanePanel.tsx"
  1480. - symbol: "WorkspaceShellLayout"
  1481. file: "packages/ui/src/app-shell/WorkspaceShellLayout.tsx"
  1482. - id: "capability.office-file-preview"
  1483. kind: "capability"
  1484. label: "Office file preview"
  1485. aliases:
  1486. - "DOCX preview"
  1487. - "Word preview"
  1488. - "file preview"
  1489. - "DOCX 预览"
  1490. - "Office 文件预览"
  1491. docs:
  1492. - "docs/ui/office-file-preview.md"
  1493. codeSeeds:
  1494. - symbol: "getOfficeFilePreviewKind"
  1495. file: "packages/ui/src/lib/officeFilePreview.ts"
  1496. - symbol: "installDocumentLinkSafety"
  1497. file: "packages/ui/src/lib/officeFilePreview.ts"
  1498. - symbol: "PreviewPaneOfficeContent"
  1499. file: "packages/ui/src/previewPaneOfficeContent.tsx"
  1500. - symbol: "PdfViewer"
  1501. file: "packages/ui/src/components/ui/pdf-viewer.tsx"
  1502. - id: "capability.mcp-async-tool-catalog"
  1503. kind: "capability"
  1504. label: "MCP asynchronous tool catalog advertisement"
  1505. aliases:
  1506. - "MCP async initialization"
  1507. - "MCP tool catalog cache"
  1508. - "MCP warm startup"
  1509. - "MCP 异步初始化"
  1510. - "MCP 工具目录缓存"
  1511. docs:
  1512. - "docs/mcp-async-tool-catalog-cache.md"
  1513. - "docs/mcp-platform-boundary.md"
  1514. - "docs/runtime-tools/mcp-status-list-control-plane.md"
  1515. codeSeeds:
  1516. - symbol: "startMcpStartup"
  1517. file: "apps/zcode-cli/packages/core/src/runtime/methods/mcp.ts"
  1518. - symbol: "registerMcpTools"
  1519. file: "apps/zcode-cli/packages/core/src/mcp/index.ts"
  1520. - id: "capability.mcp-dual-era-version-negotiation"
  1521. kind: "capability"
  1522. label: "MCP dual-era client version negotiation"
  1523. aliases:
  1524. - "MCP auto negotiation"
  1525. - "MCP server/discover fallback"
  1526. - "MCP legacy and modern compatibility"
  1527. - "MCP 双版本兼容"
  1528. - "MCP 自动协商"
  1529. docs:
  1530. - "docs/mcp-dual-era-version-negotiation.md"
  1531. - "docs/mcp-platform-boundary.md"
  1532. codeSeeds:
  1533. - symbol: "NodeMcpAdapter"
  1534. file: "apps/zcode-cli/packages/adapters/src/mcp/index.ts"
  1535. - symbol: "resolveVersionNegotiationMode"
  1536. file: "apps/zcode-cli/packages/adapters/src/mcp/index.ts"
  1537. - symbol: "ProcessTreeStdioClientTransport"
  1538. file: "apps/zcode-cli/packages/adapters/src/mcp/stdio-transport.ts"
  1539. - id: "capability.stateless-browser-use-mcp"
  1540. kind: "capability"
  1541. label: "MCP 2026-07-28 stateless node_repl Browser Use"
  1542. aliases:
  1543. - "stateless browser use"
  1544. - "shared node_repl MCP"
  1545. - "stateless node repl"
  1546. - "Browser Use 无状态"
  1547. - "MCP 2026-07-28"
  1548. docs:
  1549. - "docs/mcp-stateless-node-repl.md"
  1550. - "docs/browser-use/2026-07-28-stateless-browser-use-mcp-spec.md"
  1551. - "docs/browser-use/browser-use-plugin-runtime-boundary.md"
  1552. codeSeeds:
  1553. - symbol: "createNodeReplMcpRuntime"
  1554. file: "apps/zcode-cli/packages/node-repl-host/src/server.ts"
  1555. - symbol: "createNodeReplBrowserBroker"
  1556. file: "apps/zcode-cli/packages/bootstrap/src/app/node-repl-browser-broker.ts"
  1557. - file: "apps/zcode-cli/packages/node-repl-host/src/tool-contract.ts"
  1558. - file: "apps/zcode-cli/packages/browser-use-plugin/skills/control-browser/SKILL.md"
  1559. - file: "apps/zcode-cli/packages/contracts/src/tools/node-repl.ts"
  1560. - id: "capability.automations"
  1561. kind: "capability"
  1562. label: "Scheduled automations"
  1563. aliases:
  1564. - "automation"
  1565. - "scheduled task"
  1566. - "cron"
  1567. - "自动化"
  1568. - "定时任务"
  1569. docs:
  1570. - "docs/ui/scheduled-tasks-main-view.md"
  1571. - "docs/automation-edit-status.md"
  1572. - "docs/testing/automation-workspace-selection-boundary.md"
  1573. - id: "capability.off-peak-telemetry"
  1574. kind: "capability"
  1575. label: "Off-Peak creation, upgrade, and automatic-turn telemetry"
  1576. aliases:
  1577. - "off_peak_task_create_result"
  1578. - "off_peak_task_id"
  1579. - "session_idle_time"
  1580. - "coding_plan_upgrade_ck"
  1581. - "闲时任务埋点"
  1582. - "闲时任务升级埋点"
  1583. docs:
  1584. - "docs/monitoring/off-peak-task-telemetry-v1.md"
  1585. - "docs/off-peak-task/spec.md"
  1586. - "docs/coding-plan-purchase-funnel-telemetry.md"
  1587. - id: "capability.off-peak-model-execution"
  1588. kind: "capability"
  1589. label: "Off-Peak model execution"
  1590. aliases:
  1591. - "idle model"
  1592. - "idle plan model"
  1593. - "turnRuntimeModel"
  1594. - "executionOnly"
  1595. - "闲时模型"
  1596. - "闲时任务模型执行"
  1597. docs:
  1598. - "docs/off-peak-task/background-lifecycle-plan.md"
  1599. - "docs/working-memory/provider-refactor/steps/04-model-execution-cutover.md"
  1600. - "docs/working-memory/provider-refactor/design/execution/execution.md"
  1601. - "docs/working-memory/provider-refactor/design/registry/model-creation.md"
  1602. - "docs/working-memory/provider-refactor/design/registry/zcode-builtin-provider-config.md"
  1603. - "docs/off-peak-task/spec.md"
  1604. codeSeeds:
  1605. - symbol: "buildOffPeakRequestAuth"
  1606. file: "packages/services/src/session/offPeakRuntimeModel.ts"
  1607. - symbol: "dispatchOffPeakRun"
  1608. file: "packages/desktop/src/host/index.ts"
  1609. - symbol: "sessionFlowHandlers"
  1610. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/commands/handlers/session-flow.ts"
  1611. - symbol: "applySubmissionExecutionState"
  1612. file: "apps/zcode-cli/packages/core/src/runtime/methods/turn-model.ts"
  1613. - symbol: "ApiProviderModelRuntime"
  1614. file: "apps/zcode-cli/packages/bootstrap/src/app/provider-registry-model-runtime.ts"
  1615. - symbol: "prepareOffPeakTurn"
  1616. file: "apps/zcode-cli/packages/core/src/runtime/off-peak/runtime.ts"
  1617. - symbol: "OffPeakTicketAuthority"
  1618. file: "apps/zcode-cli/packages/core/src/runtime/off-peak/model-binding.ts"
  1619. - symbol: "retainTitleModelContext"
  1620. file: "apps/zcode-cli/packages/core/src/runtime/methods/title-generation-sidecar.ts"
  1621. invariants:
  1622. - "Implemented: per-session cliDefaultSelection is separate from Runtime Session continuation selection; idle background Agent/Bash and SendMessage share the existing scheduler. Ticket ownership lasts through whole-task completion without config or database migration."
  1623. - "Z.ai and BigModel each own one complete hidden Off-Peak Built-in Provider in the ordinary Registry. Account connection enables only the current family; neither Provider changes family at execution time, and visibility filters only Provider Settings and Model Selection."
  1624. - "3.12.2: supported local hosts advertise OffPeak tools without reading client/configs; OffPeakCreate validates gray configuration, plan and model in the Host handler before ticket/task creation. Page visibility and remote/subagent restrictions stay separate."
  1625. - "Off-Peak submissions use one standard ModelSelection and the ordinary ModelFactory; request auth, ticket, attribution, and child override are narrow execution context rather than a second model config."
  1626. - "Idle execution temporarily sets in-memory Session Selection for owned continuations while persistence retains the ordinary selection. It never changes App Recent or Configured Default and never enters the ordinary busy queue; accepted user input takes over subsequent execution."
  1627. - "Todo104 storage refinement: editing migrated Off-Peak tasks updates model_selection without clearing or back-writing the published model/thought_level columns; those columns remain rollback snapshots, not a second execution selection. New records need not synthesize legacy values."
  1628. - "Permission approval or denial continues the same automatic turn on the idle model; no provider handoff occurs."
  1629. - "Foreground and background children create their own Model and retain a ticket lease. Default session titles freeze execution ownership before asynchronous reads, carry request auth and independently retain the ticket until settlement; explicit title models remain independent."
  1630. - id: "capability.official-server-mcp"
  1631. kind: "capability"
  1632. label: "Official Server MCP authentication, quota, and unavailable banner"
  1633. aliases:
  1634. - "official MCP"
  1635. - "Server MCP"
  1636. - "ZCode MCP quota"
  1637. - "官方 MCP"
  1638. - "官方 MCP 额度"
  1639. docs:
  1640. - "docs/coding-plan/zcode-official-server-mcp-auth-spec.md"
  1641. - "docs/coding-plan/zcode-official-server-mcp-quota-banner-spec.md"
  1642. codeSeeds:
  1643. - symbol: "resolveOfficialMcpCredentials"
  1644. file: "packages/services/src/official-mcp/officialMcpCredentials.ts"
  1645. - id: "capability.mcp-settings-diagnostics"
  1646. kind: "capability"
  1647. label: "MCP Settings localized diagnostics and Plugin ownership grouping"
  1648. aliases:
  1649. - "MCP Settings errors"
  1650. - "MCP Plugin grouping"
  1651. - "MCP 设置页错误"
  1652. - "MCP 插件分组"
  1653. docs:
  1654. - "docs/settings-mcp-list.md"
  1655. - "docs/plugin-capabilities-settings.md"
  1656. - "docs/runtime-tools/mcp-status-list-control-plane.md"
  1657. codeSeeds:
  1658. - symbol: "McpSettingsSection"
  1659. file: "packages/ui/src/settings/McpSettingsSection.tsx"
  1660. - symbol: "mergeMcpServerStatusSnapshots"
  1661. file: "packages/ui/src/store/mcpStoreStatusList.ts"
  1662. - symbol: "listMcpServers"
  1663. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/mcp.ts"
  1664. - symbol: "fetchMcpQuotaSnapshot"
  1665. file: "packages/services/src/usage-stats/providers/zcodeMcpQuotaProvider.ts"
  1666. - symbol: "useV4SessionQuotaBanner"
  1667. file: "packages/ui/src/v4/useV4SessionQuotaBanner.ts"
  1668. - id: "capability.session-owned-shutdown"
  1669. kind: "capability"
  1670. label: "Session-owned work shutdown"
  1671. aliases: ["重启任务", "关闭所属子代理", "workflow cleanup", "session restart"]
  1672. docs:
  1673. - "docs/session-task-restart.md"
  1674. - "apps/zcode-cli/docs/design/v2/session-runtime-lifecycle.md"
  1675. codeSeeds:
  1676. - symbol: "createSessionFacade"
  1677. file: "apps/zcode-cli/packages/bootstrap/src/app/session-facade.ts"
  1678. - symbol: "AgentRuntime"
  1679. file: "apps/zcode-cli/packages/core/src/runtime/agent-runtime.ts"
  1680. - symbol: "createExploreSubagentPort"
  1681. file: "apps/zcode-cli/packages/core/src/subagent/runner.ts"
  1682. - symbol: "ScriptWorkflowRuntime"
  1683. file: "apps/zcode-cli/packages/bootstrap/src/app/script-workflow-runtime.ts"
  1684. - symbol: "createRunServiceLifecycle"
  1685. file: "apps/zcode-cli/packages/bootstrap/src/app/dynamic-workflow-run-lifecycle.ts"
  1686. - symbol: "releaseActorSessions"
  1687. file: "apps/zcode-cli/packages/bootstrap/src/app/workflow-driver-quiescence.ts"
  1688. invariants:
  1689. - "Background work detaches from a turn, not its session owner. Shutdown closes admission, cancels owned work and drains actual execution and cleanup before releasing shared resources."
  1690. - "Task terminal status and workflow settlement do not prove cleanup completion. Failed cleanup keeps the existing lifecycle faulted; restart must not create a second instance."
  1691. - "Ownership comes from runtime handles, not historical parentSessionId traversal. Independent tasks and forks remain isolated, including sessions sharing a CLI process."
  1692. - id: "capability.subagents"
  1693. kind: "capability"
  1694. label: "Subagents"
  1695. aliases:
  1696. - "subagent"
  1697. - "agent profile"
  1698. - "子代理"
  1699. - "智能体配置"
  1700. docs:
  1701. - "docs/subagents-built-in-model-overrides.md"
  1702. - "docs/subagent-session-side-tabs.md"
  1703. - "docs/working-memory/provider-refactor/steps/todo-97-subagent-markdown-in-place-migration-and-legacy-read-audit.md"
  1704. - "docs/working-memory/provider-refactor/design/execution/execution.md"
  1705. - "docs/working-memory/provider-refactor/steps/04-model-execution-cutover.md"
  1706. - "docs/superpowers/plans/2026-07-06-subagent-permission-delegation.md"
  1707. codeSeeds:
  1708. - symbol: "AgentInputSchema"
  1709. file: "apps/zcode-cli/packages/contracts/src/tools/agent.ts"
  1710. - symbol: "agentHandler"
  1711. file: "apps/zcode-cli/packages/core/src/tool/handlers/agent.ts"
  1712. - symbol: "createExploreSubagentPort"
  1713. file: "apps/zcode-cli/packages/core/src/subagent/runner.ts"
  1714. - symbol: "migrateUserSubagentMarkdown"
  1715. file: "packages/shared/src/node/subagentMarkdownMigration.ts"
  1716. - symbol: "parseSubagentMarkdownSelection"
  1717. file: "packages/shared/src/subagent-markdown-selection.ts"
  1718. invariants:
  1719. - "Host and standalone Agent await offline migration of user-directory Markdown and builtin state before formal reads. Markdown keeps model/thoughtLevel; intermediate modelSelection is not consumed. Only user Markdown provider values are rewritten, preserving unrelated bytes; project/plugin files and symlinks are excluded. JSON uses builtInModelSelectionOverrides after one-way import. Ordinary readers do not remap legacy identities or fall back to old fields. Explicit execution still validates its concrete selection; Host effective-selection protocol remains a separate Todo96 decision."
  1720. - id: "capability.provider-registry"
  1721. kind: "capability"
  1722. label: "Model provider registry"
  1723. aliases:
  1724. - "provider"
  1725. - "custom provider"
  1726. - "provider registry"
  1727. - "ZCode Built-in Provider Config"
  1728. - "Account Provider Config"
  1729. - "Account Built-in Provider Config"
  1730. - "Effective Built-in Provider Config"
  1731. - "Provider Template"
  1732. - "Personal Provider Config"
  1733. - "Effective Provider Config"
  1734. - "模型供应商"
  1735. - "自定义 provider"
  1736. docs:
  1737. - "docs/working-memory/provider-refactor/steps/03-staging-integration.md"
  1738. - "docs/working-memory/provider-refactor/design/design.md"
  1739. - "docs/working-memory/provider-refactor/design/registry/configuration.md"
  1740. - "docs/working-memory/provider-refactor/design/registry/registry.md"
  1741. - "docs/working-memory/provider-refactor/design/registry/model-membership-and-enablement.md"
  1742. - "docs/working-memory/provider-refactor/design/registry/model-creation.md"
  1743. - "docs/working-memory/provider-refactor/steps/04-model-execution-cutover.md"
  1744. - "docs/working-memory/provider-refactor/steps/todo-03-provider-model-ownership-and-property-totality.md"
  1745. - "docs/working-memory/provider-refactor/research/model-abstraction-unification-cleanup-audit.md"
  1746. - "docs/working-memory/provider-refactor/steps/todo-00-model-abstraction-unification-roadmap.md"
  1747. - "docs/working-memory/provider-refactor/steps/todo-01-core-model-adapter-boundary-cleanup.md"
  1748. - "docs/working-memory/provider-refactor/steps/todo-02-ai-sdk-execution-registry-retirement.md"
  1749. - "docs/working-memory/provider-refactor/steps/todo-04-core-model-connection-port-retirement.md"
  1750. - "docs/working-memory/provider-refactor/steps/todo-05-model-ref-retirement.md"
  1751. - "docs/working-memory/provider-refactor/steps/todo-07-account-connection-selection-and-access-context-cutover.md"
  1752. - "docs/working-memory/provider-refactor/steps/todo-10-zcode-builtin-provider-config-naming-cutover.md"
  1753. - "docs/working-memory/provider-refactor/steps/todo-12-model-selection-validation-boundary-cutover.md"
  1754. - "docs/working-memory/provider-refactor/steps/todo-13-target-host-model-selection-authority.md"
  1755. - "docs/working-memory/provider-refactor/steps/todo-20-account-overlay-atomicity-and-review-closeout.md"
  1756. - "docs/working-memory/provider-refactor/steps/todo-21-zcode-builtin-config-ownership-and-model-activation-order.md"
  1757. - "docs/working-memory/provider-refactor/steps/todo-32-team-plan-settings-effective-provider-boundary.md"
  1758. - "docs/working-memory/provider-refactor/steps/todo-51-provider-access-consumer-and-offpeak-auth-closeout.md"
  1759. - "docs/working-memory/provider-refactor/steps/todo-55-provider-template-inheritance-cutover.md"
  1760. - "docs/model-provider-presets.md"
  1761. - "docs/model-provider-config-overrides.md"
  1762. - "docs/model-provider-catalog-metadata.md"
  1763. codeSeeds:
  1764. - file: "packages/provider/src/index.ts"
  1765. - symbol: "ProviderConfigResolver"
  1766. file: "packages/provider/src/resolver.ts"
  1767. - symbol: "ProviderTemplateMap"
  1768. file: "packages/provider/src/config/provider-config.ts"
  1769. - symbol: "AccountProviderService"
  1770. file: "packages/provider/src/account-provider-service.ts"
  1771. - symbol: "ProjectAccessTokenClient"
  1772. file: "packages/shared/src/project-access-token-client.ts"
  1773. - symbol: "createAccountProjectTokenClient"
  1774. file: "packages/services/src/model-provider/accountProjectTokenClient.ts"
  1775. - symbol: "createCredentialService"
  1776. file: "packages/services/src/credential/credentialService.ts"
  1777. - symbol: "ApiProviderModelRuntime"
  1778. file: "apps/zcode-cli/packages/bootstrap/src/app/provider-registry-model-runtime.ts"
  1779. - symbol: "RuntimeModelFactory"
  1780. file: "apps/zcode-cli/packages/bootstrap/src/app/provider-registry-model-runtime.ts"
  1781. - symbol: "ApiProviderModelRuntime"
  1782. file: "apps/zcode-cli/packages/bootstrap/src/app/provider-registry-model-runtime.ts"
  1783. invariants:
  1784. - "Model input/output format facts use the same properties.input_format/output_format shape in Config, Model, Runtime, and protocol; no parallel media capability DTO is authoritative."
  1785. - "Project location metadata is recoverable cache, not OAuth identity. Unreadable metadata is rechecked and conditionally removed under the shared credential-file lock before one bounded rebuild; valid OAuth and unrelated credentials remain intact. Superseded requests cannot recover or commit cache changes."
  1786. - "Provider/Model Config overlays and Personal updates may be sparse; after resolve, validateComplete supplies diagnostics and Provider/Model requireComplete boundaries are the only path into Registry, whose configs and properties are statically complete."
  1787. - "Concrete Providers resolve from an optional Provider Template baseline followed by Built-in Concrete Provider, Account Config when applicable, and Personal Config; Personal remains the final user override."
  1788. - "Account Config is derived only for concrete Built-in Account Providers and does not inspect or constrain Personal-only Providers."
  1789. - "Provider Config has no top-level enabled field. A Personal Provider exists in Settings when its Personal definition exists; an Account Provider has fixed Family placement, while zhipu-account access.entitled expresses account eligibility. Registry admission still requires complete Effective Provider Config and an enabled, complete Model."
  1790. - "Every Account snapshot declares basedOnZCodeBuiltinRevision; Registry publishes only a matching Built-in/Account pair, retains the prior complete Registry while Account recomputes, and never blocks Personal-only updates on Account refresh."
  1791. - "ZCode Built-in Active/LKG and refresh control are physically isolated by normalized ZCode control-plane Endpoint under platform/appVersion; revisions and fallbacks never cross Endpoint directories."
  1792. - "Provider startup requires a valid trusted Bundled baseline, not every auxiliary source: disposable Active/LKG and Configured Default failures fall back, invalid Personal config is preserved for recovery then replaced by an empty in-memory or persisted overlay, and first-load Account resolution failure publishes a matching entitled=false overlay. Only an invalid Bundled baseline or an internal Resolver/Registry invariant failure blocks startup."
  1793. - "Personal Config cross-process observation uses one asynchronous content-revision polling loop rather than fs.watch; same-process saves publish immediately, other processes self-heal within one interval, and provider connectivity explicitly refreshes the Worker Registry before lookup without creating a Host-side Model path."
  1794. - "Normal Built-in and Account Built-in assembly maintains builtinModelIds while Personal settings maintains modelIds; strict source schemas reject fields outside each source boundary before all inputs enter the shared Provider/Model overlay types."
  1795. - "Model Config enabled is the only per-model execution gate. Built-in general rules provide the complete default, more specific Built-in rules may default-disable retired models, and later Personal provider-model rules express user overrides. Settings retains disabled members for editing and re-enabling, while Registry, selection candidates, defaults, fallbacks, exact ModelFactory creation, tests, and internal tasks reject them. Existing Active Models are not interrupted by a later config refresh."
  1796. - "Model Config has no visibility field. Provider visibility is the only user-facing visibility boundary; hidden complete Providers keep enabled models in the ordinary Registry for exact internal creation but are absent from Settings and Selection facades."
  1797. - "Personal Repository presence is the only authority for whether a normal Provider has been added: standard-builtin overlays are created only by addBuiltinProvider, standard-personal providers only by createPersonalProvider, and ordinary save updates existing overlays without reviving deletion; fixed Z.ai/BigModel Family providers may materialize their first sparse Personal overlay through Family settings."
  1798. - "At the inventory boundary, missing or null collections normalize to empty, Built-in membership wins a cross-source duplicate, and repeated ids within one array retain the first occurrence. Resolver ignores later duplicates deterministically and Settings normalizes Provider-owned arrays on save; no conflict DTO or suspended second identity is created."
  1799. - "Provider modelOrder and Personal top-level providerOrder own user sorting. The shared owned-order algorithm yields unmentioned Built-in + requested valid members + unmentioned Personal; Family Providers remain outside the sortable standard segment. Settings, Registry, and Selection preserve that inventory and filter it without secondary sorting."
  1800. - "Provider group is explicit at root declarations, immutable through Account/Personal overlays, and complete in Effective Provider, Registry, and Settings DTOs; it replaces an additional builtin boolean, and Renderer never infers grouping from ids, preset lists, or Personal map membership."
  1801. - "Effective Model Rules resolve against Effective Provider Config and are composed as ZCode Built-in rules + Personal Match rules + Personal provider-model rules; each group preserves internal order and Personal exact rules always apply last."
  1802. - "ZCode Built-in Model Rules use physical authoring order rather than a priority mechanism: complete baseline, Model Match, Model + API Match, Model + API + Endpoint Match, Provider-scoped Match for service facts that apply to all current/future members, then narrow Provider-Model Exact Rules; Resolver preserves that Built-in order without dynamic specificity sorting."
  1803. - "Z.ai/BigModel Start, Individual, and Team Plan Providers expose Image/Video input for every member because the plan service performs visual-to-text processing before the model API; this is a Provider-scoped Built-in Model Rule and never changes the native capability of ordinary Account API models. Individual and Team static membership is ordered GLM-5.3, GLM-5.3-Flash, GLM-5.2, GLM-5-Turbo, while Start membership remains Account-returned."
  1804. - "Both Built-in and Personal Model Rule sources may use structured provider-model rules for an exact providerId/modelId target or match rules for a target set. Built-in exact rules are release-owned; only Personal exact rules follow Settings rename/delete lifecycle. Match rules are never guessed, renamed, or deleted by Provider/Model lifecycle operations."
  1805. - "The Provider Config chain uses zcodeBuiltin/zcode-builtin naming across domain APIs, source paths, process fields, environment variables, and packaged assets; the unshipped official naming has no alias, fallback, importer, or dual-read compatibility, while unrelated Official MCP/Plugin/CUA concepts retain their own terminology."
  1806. - "Account-type Provider Config does not manage account credentials; Services resolve them at request time and the server makes the final authorization decision."
  1807. - "Account Connection owns current-account facts. Built-in Provider Config owns zhipu-account family/mode; Account Built-in Provider Config projects only entitled and account-specific model membership, while account identity, Coding Plan project keys, Team scope, JWT, and other dynamic credentials stay inside request-time Services."
  1808. - "Start Plan, Individual Coding Plan, Team Coding Plan, and Off-Peak are separate fixed-kind Built-in Providers with enabled=true. Account Built-in overlay marks the compatible current connection entitled without rewriting Provider enabled, and Resolver admits only enabled, entitled, complete Providers to Registry."
  1809. - "Welcome manual API-key setup locates the fixed zai-api or bigmodel-api Built-in Provider and saves only a sparse Personal Provider Overlay. It does not create a custom Provider, copy Built-in endpoint/schema/models, enter Account Request Auth, or mutate an existing explicit Family Connection Selection."
  1810. - "Off-Peak request auth combines ZCode JWT, the compatible Coding Plan project key, and the Off-Peak ticket through one Registry-backed host-private credential resolver. Desktop Host dispatch does not scan Provider Settings or independently infer the current account Provider."
  1811. - "Five strict input schemas enforce ZCode Built-in Provider, Account Provider, Personal Provider, ZCode Built-in Model Rule, and Personal Model Rule field ownership before common overlay and completeness validation. UI visibility remains a separate presentation decision."
  1812. - "Provider Access owns challenge, requestSigning, and executionProtocol product protocols; Model Config and Runtime do not infer Captcha, V4 signing, or Off-Peak behavior from model/provider ids."
  1813. - "A request-auth Provider receives dynamic credentials per request and fails before network I/O when they are absent."
  1814. - "RuntimeModelFactoryInput cannot override Registry-owned context, properties, or provider options; execution-scoped MCS force is consumed where Provider messages are projected, including Full Compact, and never becomes Model Config or a ModelFactory capability input."
  1815. - "Published Legacy Provider store shapes may be parsed only by importer-private Services types and helpers; they are not Shared, Protocol, UI, Registry, Runtime, or test-fixture contracts."
  1816. - "The unversioned Legacy CLI importer migrates only explicitly represented facts without capability guesses; after the forced-upgrade compatibility window it and its legacy parser dependencies are removed, while normal schemaVersion migrations remain."
  1817. - "Core uses ModelSelection for future intent and Model for active execution; it does not call a model Adapter or query a physical Provider Connection."
  1818. - "The business Provider Registry is the only Provider/Model fact registry; Adapter execution projections and caches are one-way private implementation details."
  1819. - "Model identity does not carry reasoning options; do not introduce a general ModelIdentity while ModelSelection, Model, or local event fields already express the required semantics."
  1820. - "reasoningLevel.values is ordered from the lowest to the highest public level; default remains the ordinary request default, while explicitly low-cost auxiliary calls, including Provider connectivity, uniformly select values[0] without guessing disabled aliases."
  1821. - id: "capability.provider-endpoint-routing"
  1822. kind: "capability"
  1823. label: "ZCode CLI provider endpoint routing"
  1824. aliases:
  1825. - "provider endpoint routing"
  1826. - "proxy endpoint mapping"
  1827. - "agent configs proxy"
  1828. - "模型流量转发"
  1829. - "动态端点转发"
  1830. - "静态网关"
  1831. docs:
  1832. - "apps/zcode-cli/docs/design/v2/model/provider-endpoint-routing.md"
  1833. - "apps/zcode-cli/docs/design/v2/model/http-proxy.md"
  1834. - id: "capability.model-request-session-type-attribution"
  1835. kind: "capability"
  1836. label: "Model request session type attribution header"
  1837. aliases:
  1838. - "x-zcode-session-type"
  1839. - "model request session type"
  1840. - "模型请求 session 分类"
  1841. - "主会话子代理请求归因"
  1842. docs:
  1843. - "docs/superpowers/specs/2026-06-09-agent-model-request-session-header-design.md"
  1844. - "apps/zcode-cli/docs/design/v2/model/README.md"
  1845. codeSeeds:
  1846. - symbol: "ModelRequestSessionType"
  1847. file: "apps/zcode-cli/packages/contracts/src/model/index.ts"
  1848. - symbol: "resolveModelRequestSessionTypeFromTaskType"
  1849. file: "apps/zcode-cli/packages/core/src/runtime/methods/model-request-session-type.ts"
  1850. - symbol: "createModelRequestAttributionHeaders"
  1851. file: "apps/zcode-cli/packages/adapters/src/model/runner-status.ts"
  1852. - id: "capability.anthropic-request-metadata"
  1853. kind: "capability"
  1854. label: "Anthropic request attribution metadata"
  1855. aliases:
  1856. - "Anthropic metadata"
  1857. - "metadata.user_id"
  1858. - "Anthropic device id"
  1859. - "Anthropic 请求归因"
  1860. - "模型请求设备 ID"
  1861. docs:
  1862. - "docs/anthropic-request-metadata.md"
  1863. - id: "capability.anthropic-reasoning-history-replay"
  1864. kind: "capability"
  1865. label: "Anthropic reasoning history replay and signature repair"
  1866. aliases:
  1867. - "thinking signature replay"
  1868. - "reasoning history normalization"
  1869. - "signature repair retry"
  1870. - "Anthropic 推理历史回放"
  1871. - "thinking 签名修复"
  1872. docs:
  1873. - "apps/zcode-cli/docs/design/v2/model/anthropic-reasoning-history-replay.md"
  1874. - id: "capability.model-reasoning-request-projection"
  1875. kind: "capability"
  1876. label: "Provider-visible reasoning history projection"
  1877. aliases:
  1878. - "empty reasoning stub"
  1879. - "reasoning_content replay"
  1880. - "reasoning request projection"
  1881. - "空 reasoning 请求投影"
  1882. docs:
  1883. - "apps/zcode-cli/docs/design/v2/model/README.md"
  1884. - "apps/zcode-cli/docs/design/v2/model/anthropic-reasoning-history-replay.md"
  1885. - id: "capability.oauth-login-attribution"
  1886. kind: "capability"
  1887. label: "OAuth login marketing attribution"
  1888. aliases:
  1889. - "OAuth attribution"
  1890. - "marketing attribution"
  1891. - "OAuth 归因"
  1892. - "登录归因"
  1893. docs:
  1894. - "docs/oauth/app-marketing-attribution.md"
  1895. - id: "capability.remote-delivery"
  1896. kind: "capability"
  1897. label: "Web remote realtime delivery"
  1898. aliases:
  1899. - "mobile remote"
  1900. - "replayable"
  1901. - "remote control"
  1902. - "手机远控"
  1903. - "重连恢复"
  1904. docs:
  1905. - "docs/web-remote-control/web-remote-control-architecture.md"
  1906. - "docs/web-remote-control/task-realtime-sync.md"
  1907. - "docs/web-remote-control-task-command-queue.md"
  1908. - id: "capability.workspace-identity"
  1909. kind: "capability"
  1910. label: "Workspace identity and remote runtime isolation"
  1911. aliases:
  1912. - "workspace identity"
  1913. - "remote workspace"
  1914. - "SSH"
  1915. - "WSL"
  1916. - "Docker"
  1917. - "工作区隔离"
  1918. docs:
  1919. - "docs/remote-workspace-session-unified-settings.md"
  1920. - "docs/ssh-remote-app-global-state-authority.md"
  1921. - "docs/v4-refactor/14-sessions-index.md"
  1922. - id: "capability.remote-provider-provisioning"
  1923. kind: "capability"
  1924. label: "Remote Environment Provider Provisioning v0"
  1925. aliases:
  1926. - "provider provisioning"
  1927. - "remote provider sync"
  1928. - "Environment provider sync"
  1929. - "远程 Provider 配置同步"
  1930. - "远程环境模型配置镜像"
  1931. docs:
  1932. - "docs/remote/provider-provisioning.md"
  1933. - "docs/remote-workspace-session-unified-settings.md"
  1934. - "docs/working-memory/provider-refactor/steps/todo-56-remote-provider-provisioning-environment-sync.md"
  1935. - "docs/testing/r3-remote-automation-plan.md"
  1936. codeSeeds:
  1937. - symbol: "ProviderProvisioningEnvironmentCoordinator"
  1938. file: "packages/desktop/src/main/providerProvisioningEnvironmentCoordinator.ts"
  1939. - symbol: "createProviderProvisioningSource"
  1940. file: "packages/services/src/model-provider/providerProvisioningSource.ts"
  1941. - symbol: "createProviderProvisioningTarget"
  1942. file: "packages/services/src/model-provider/providerProvisioningTarget.ts"
  1943. invariants:
  1944. - "The Local Environment is the v0 authority; each online Remote Environment receives a replace-style execution mirror, while Built-in Release and already-created Active Models are unchanged."
  1945. - "Provisioning is deduplicated by Remote Environment rather than Workspace, window, workspacePath, workspaceIdentity, or remoteSessionId; one lane provides single-flight plus a latest-state trailing refresh."
  1946. - "Desktop Main coordinates only Environment identity, trigger, generation, and correlation metadata. The selected Local Host reads Config and allowlisted credentials and sends the envelope to the Remote Target; Main never receives Config or Secret values."
  1947. - "Desktop continuous and Web remote replayable session-delivery semantics are invariant under Provider Provisioning."
  1948. - "R3 Environment keys remain transport-target-derived rather than sourceServerId-derived; different routes to one Source may provision separately."
  1949. - "Initial provisioning success gates workspace ready; reconnect registers the new remoteSessionId, and subsequent provisioning failure warns without tearing down the recovered workspace."
  1950. - "Static config is frozen in each created Model, not the entire Session; a subsequent ordinary turn creates a Model from the refreshed target Registry."
  1951. - id: "capability.remote-file-actions"
  1952. kind: "capability"
  1953. label: "Remote workspace file actions in local applications"
  1954. aliases:
  1955. - "WSL Explorer"
  1956. - "remote open in editor"
  1957. - "远程文件打开"
  1958. - "在资源管理器中打开"
  1959. docs:
  1960. - "docs/wsl-open-in-editor.md"
  1961. - id: "capability.workspace-file-tree"
  1962. kind: "capability"
  1963. label: "Workspace file tree navigation"
  1964. aliases:
  1965. - "file tree"
  1966. - "compact folders"
  1967. - "sticky folders"
  1968. - "文件树"
  1969. - "目录吸顶"
  1970. docs:
  1971. - "docs/ui/workspace-file-tree.md"
  1972. - "docs/testing/workspace-file-tree-e2e-coverage.md"
  1973. - id: "surface.workspace-file-tree-panel"
  1974. kind: "ui-surface"
  1975. label: "Workspace file tree panel"
  1976. codeSeeds:
  1977. - symbol: "WorkspaceFileTree"
  1978. file: "packages/ui/src/workspace-file-tree/WorkspaceFileTree.tsx"
  1979. - symbol: "WorkspaceFileTreeRowView"
  1980. file: "packages/ui/src/workspace-file-tree/WorkspaceFileTreeRowView.tsx"
  1981. - symbol: "WorkspaceFileTreeStickyFolders"
  1982. file: "packages/ui/src/workspace-file-tree/WorkspaceFileTreeStickyFolders.tsx"
  1983. - id: "state.workspace-file-tree-projection"
  1984. kind: "state-owner"
  1985. label: "Workspace file tree lazy-load and flattened row projection"
  1986. codeSeeds:
  1987. - symbol: "useWorkspaceFileTreeData"
  1988. file: "packages/ui/src/workspace-file-tree/useWorkspaceFileTreeData.ts"
  1989. - symbol: "flattenWorkspaceFileTreeRows"
  1990. file: "packages/ui/src/workspace-file-tree/model.ts"
  1991. - id: "evidence.workspace-file-tree-e2e"
  1992. kind: "evidence"
  1993. label: "Workspace file tree E2E coverage"
  1994. docs:
  1995. - "docs/testing/workspace-file-tree-e2e-coverage.md"
  1996. - id: "capability.prompt-attachment-materialization"
  1997. kind: "capability"
  1998. label: "Prompt attachment materialization"
  1999. aliases:
  2000. - "prompt attachment"
  2001. - "attachment staging"
  2002. - "WSL attachment"
  2003. - "附件物化"
  2004. - "附件预传"
  2005. - "图片派生路径"
  2006. - "媒体派生路径"
  2007. docs:
  2008. - "docs/remote-prompt-attachment-materialization.md"
  2009. - "docs/conversation-session-case-catalog.md"
  2010. - "apps/zcode-cli/docs/design/v2/message-attachments.md"
  2011. - "docs/ui/chat-file-attachments.md"
  2012. codeSeeds:
  2013. - symbol: "NodeToolArtifactStore.ensureMediaAttachmentPath"
  2014. file: "apps/zcode-cli/packages/adapters/src/storage/index.ts"
  2015. - symbol: "projectMessagesWithMediaAttachmentPaths"
  2016. file: "apps/zcode-cli/packages/core/src/runtime/helpers/media-attachment-path.ts"
  2017. - id: "capability.video-input"
  2018. kind: "capability"
  2019. label: "Video input"
  2020. aliases:
  2021. - "video attachment"
  2022. - "video Read"
  2023. - "视频输入"
  2024. - "视频附件"
  2025. docs:
  2026. - "docs/plans/2026-08-17-video-input-support-plan.md"
  2027. - "apps/zcode-cli/docs/design/v2/message-attachments.md"
  2028. - "apps/zcode-cli/docs/design/v2/tool/01-read.md"
  2029. codeSeeds:
  2030. - symbol: "ModelVideoContentBlock"
  2031. file: "apps/zcode-cli/packages/contracts/src/model/index.ts"
  2032. - symbol: "resolveTurnAttachments"
  2033. file: "apps/zcode-cli/packages/core/src/runtime/helpers/attachments.ts"
  2034. - symbol: "readVideoFile"
  2035. file: "apps/zcode-cli/packages/core/src/tool/handlers/read-video.ts"
  2036. - symbol: "toAiSdkMessages"
  2037. file: "apps/zcode-cli/packages/adapters/src/model/transform.ts"
  2038. - id: "capability.task-persistence"
  2039. kind: "capability"
  2040. label: "Task persistence, index, and snapshots"
  2041. aliases:
  2042. - "task index"
  2043. - "snapshot"
  2044. - "restore"
  2045. - "任务持久化"
  2046. - "任务恢复"
  2047. docs:
  2048. - "docs/task/task-sqlite-index.md"
  2049. - "docs/task/task-snapshot-on-demand.md"
  2050. - "docs/working-memory/provider-refactor/steps/todo-109-database-migration-consolidation-and-rollback-readability.md"
  2051. - "docs/desktop/database-migration-startup-gate-plan.md"
  2052. - id: "capability.desktop-app-shutdown"
  2053. kind: "capability"
  2054. label: "Desktop app shutdown and update-install handoff"
  2055. aliases:
  2056. - "app quit"
  2057. - "Windows shutdown"
  2058. - "quitAndInstall"
  2059. - "应用退出"
  2060. - "更新安装退出"
  2061. docs:
  2062. - "docs/desktop/agent-shutdown-latency.md"
  2063. - "docs/desktop/windows-update-install-handoff.md"
  2064. - id: "capability.desktop-startup-critical-path"
  2065. kind: "capability"
  2066. label: "Desktop Local Host and active-workspace startup critical path"
  2067. aliases:
  2068. - "desktop startup performance"
  2069. - "runtime env prewarm"
  2070. - "active-first tab restore"
  2071. - "桌面启动性能"
  2072. - "环境预热"
  2073. - "活动工作区优先恢复"
  2074. - "数据库迁移启动 loading"
  2075. - "大库升级等待"
  2076. - "主界面前统一准备数据库"
  2077. - "迁移空间不足提示"
  2078. docs:
  2079. - "docs/desktop/startup-critical-path.md"
  2080. - "docs/desktop/database-migration-startup-gate-plan.md"
  2081. - "docs/desktop/database-startup-plan-review.md"
  2082. - "docs/working-memory/provider-refactor/steps/todo-145-global-database-startup-loading.md"
  2083. codeSeeds:
  2084. - symbol: "prepareRuntimeProcessEnvPatch"
  2085. file: "packages/services/src/runtime-tools/runtimeCommandEnv.ts"
  2086. - symbol: "createWindow"
  2087. file: "packages/desktop/src/main/desktopWindowLifecycle.ts"
  2088. - symbol: "useTabPersistence"
  2089. file: "packages/ui/src/hooks/useTabPersistence.ts"
  2090. - symbol: "RootStartupLoading"
  2091. file: "packages/ui/src/root/RootStartupLoading.tsx"
  2092. - symbol: "runSqliteSessionMigrations"
  2093. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/migration-runner.ts"
  2094. - file: "packages/desktop/src/renderer/src/main.tsx"
  2095. - file: "packages/desktop/src/host/index.ts"
  2096. - symbol: "TaskIndexRepo"
  2097. file: "packages/services/src/session/taskIndexRepo.ts"
  2098. - symbol: "SqliteSessionMigrationError"
  2099. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/errors.ts"
  2100. - symbol: "dispatchFinalArmsCustomEvent"
  2101. file: "packages/desktop/src/main/desktopArmsCustomEvent.ts"
  2102. invariants:
  2103. - "Todo145 planned: global database preparation precedes business Root and background admission; includes Host tasks-index initialization and session storage, preserves frozen migration SQL/checksums and SQLite authority. Current workspace-driven loading does not satisfy the planned contract."
  2104. - "Todo145 planned: structured storage-full errors drive UI and telemetry; periodic statfs aggregates observed available-space decline, never claims exclusive migration disk usage. Telemetry failure must not gate application readiness."
  2105. - id: "state.desktop-runtime-process-env"
  2106. kind: "state-owner"
  2107. label: "Per-window bounded runtime process environment patch"
  2108. codeSeeds:
  2109. - symbol: "buildRuntimeProcessEnvPatch"
  2110. file: "packages/services/src/runtime-tools/runtimeCommandEnv.ts"
  2111. - symbol: "initializeRuntimeProcessEnv"
  2112. file: "packages/services/src/runtime-tools/runtimeCommandEnv.ts"
  2113. - id: "state.desktop-tab-restore-projection"
  2114. kind: "state-owner"
  2115. label: "Renderer-local pending, active-ready, and complete tab restore projection"
  2116. codeSeeds:
  2117. - symbol: "useTabPersistence"
  2118. file: "packages/ui/src/hooks/useTabPersistence.ts"
  2119. - symbol: "completeTabRestore"
  2120. file: "packages/ui/src/store/tabStore.ts"
  2121. - id: "service.desktop-local-host-startup"
  2122. kind: "service"
  2123. label: "Desktop per-window Local Host startup gate"
  2124. codeSeeds:
  2125. - symbol: "createWindow"
  2126. file: "packages/desktop/src/main/desktopWindowLifecycle.ts"
  2127. - symbol: "spawnHostProcess"
  2128. file: "packages/desktop/src/main/desktopHostProcess.ts"
  2129. - id: "evidence.desktop-startup-critical-path-tests"
  2130. kind: "evidence"
  2131. label: "Desktop runtime env, Host deadline, and tab restore tests"
  2132. codeSeeds: [] # App 单测已退役,当前没有该层自动化证据。
  2133. - id: "surface.app-usage-dashboard"
  2134. kind: "ui-surface"
  2135. label: "Settings App Usage dashboard"
  2136. codeSeeds:
  2137. - symbol: "AppUsagePanel"
  2138. file: "packages/ui/src/settings/usage-stats/AppUsagePanel.tsx"
  2139. - symbol: "UsageStatsSection"
  2140. file: "packages/ui/src/settings/UsageStatsSection.tsx"
  2141. - id: "surface.resource-manager-window"
  2142. kind: "ui-surface"
  2143. label: "Help menu Resource Manager window"
  2144. codeSeeds:
  2145. - symbol: "ResourceManagerApp"
  2146. file: "packages/ui/src/resource-manager/ResourceManagerApp.tsx"
  2147. - symbol: "StorageSection"
  2148. file: "packages/ui/src/resource-manager/storage/StorageSection.tsx"
  2149. - symbol: "NetworkSection"
  2150. file: "packages/ui/src/resource-manager/NetworkSection.tsx"
  2151. - symbol: "openResourceManager"
  2152. file: "packages/desktop/src/main/resourceManagerWindow.ts"
  2153. - symbol: "WindowsCaptionMenuButton"
  2154. file: "packages/ui/src/WindowsCaptionMenuButton.tsx"
  2155. - id: "surface.plan-usage"
  2156. kind: "ui-surface"
  2157. label: "Coding Plan and Team Plan usage surfaces"
  2158. codeSeeds:
  2159. - symbol: "CodingPlanUsagePanel"
  2160. file: "packages/ui/src/settings/usage-stats/CodingPlanUsagePanel.tsx"
  2161. - id: "surface.start-plan-manual-claim"
  2162. kind: "ui-surface"
  2163. label: "Marketing Touch claim banner and result dialog (formerly manual claim)"
  2164. docs:
  2165. - "docs/zai-start-plan-provider.md"
  2166. - "docs/cloud-content-dialog.md"
  2167. - "docs/testing/marketing-touch-e2e-implementation.md"
  2168. - "docs/marketing-touch-client.md"
  2169. codeSeeds:
  2170. - symbol: "MarketingBanner"
  2171. file: "packages/ui/src/components/marketing-touch/MarketingBanner.tsx"
  2172. - symbol: "MarketingDialogs"
  2173. file: "packages/ui/src/components/marketing-touch/MarketingDialogs.tsx"
  2174. - id: "capability.cloud-content-dialog"
  2175. kind: "capability"
  2176. label: "Cloud-driven content dialog and Hero resources"
  2177. aliases:
  2178. - "cloud content dialog"
  2179. - "remote Hero"
  2180. - "云端内容弹窗"
  2181. - "远端 Hero 资源"
  2182. docs:
  2183. - "docs/cloud-content-dialog.md"
  2184. codeSeeds:
  2185. - symbol: "CloudContentDialog"
  2186. file: "packages/ui/src/components/cloud-content-dialog/CloudContentDialog.tsx"
  2187. - symbol: "cloudContentPayloadSchema"
  2188. file: "packages/shared/src/cloudContent.ts"
  2189. - symbol: "CloudDialogHero"
  2190. file: "packages/ui/src/components/cloud-content-dialog/CloudDialogHero.tsx"
  2191. - id: "surface.cloud-content-preview"
  2192. kind: "ui-surface"
  2193. label: "Retired Desktop dev HTTP content preview; no production entry"
  2194. docs:
  2195. - "docs/cloud-content-dialog.md"
  2196. codeSeeds: []
  2197. - id: "service.cloud-content-assets"
  2198. kind: "state-owner"
  2199. label: "Host-exclusive content ZIP cache and resource leases"
  2200. codeSeeds:
  2201. - symbol: "createCloudContentService"
  2202. file: "packages/services/src/cloud-content/cloudContentService.ts"
  2203. - symbol: "createContentBundleCache"
  2204. file: "packages/services/src/cloud-content/contentBundleCache.ts"
  2205. - id: "shared.cloud-dialog-hero"
  2206. kind: "shared-ui"
  2207. label: "Sandboxed cloud dialog Hero renderer"
  2208. docs:
  2209. - "docs/cloud-content-dialog.md"
  2210. codeSeeds:
  2211. - symbol: "CloudDialogHero"
  2212. file: "packages/ui/src/components/cloud-content-dialog/CloudDialogHero.tsx"
  2213. - file: "packages/ui/src/assets/cloud-content/weekend-plan-hero.html"
  2214. - id: "state.start-plan-model-guide-request"
  2215. kind: "state-owner"
  2216. label: "Retired claim-triggered model guide; Marketing Touch does not select models"
  2217. codeSeeds: []
  2218. - id: "evidence.start-plan-manual-claim-tests"
  2219. kind: "evidence"
  2220. label: "Start Plan manual claim focused and Desktop E2E coverage"
  2221. docs:
  2222. - "docs/testing/marketing-touch-e2e-audit.md"
  2223. - "docs/testing/marketing-touch-e2e-implementation.md"
  2224. codeSeeds:
  2225. - file: "packages/desktop/test/e2e/ui-shell/manual-review/pending/marketing-touch-delivery.test.ts"
  2226. - file: "packages/desktop/test/e2e/ui-shell/manual-review/pending/marketing-touch-entitlement.test.ts"
  2227. - id: "surface.office-document-workbench"
  2228. kind: "ui-surface"
  2229. label: "Office preview and editing workbench"
  2230. codeSeeds:
  2231. - symbol: "PreviewPane"
  2232. file: "packages/ui/src/PreviewPane.tsx"
  2233. - symbol: "PdfViewer"
  2234. file: "packages/ui/src/components/ui/pdf-viewer.tsx"
  2235. - id: "surface.pptx-element-selection"
  2236. kind: "ui-surface"
  2237. label: "Preview Pane explicit PPTX element selection"
  2238. codeSeeds:
  2239. - symbol: "PptxPreviewViewer"
  2240. file: "packages/ui/src/components/ui/pptx-preview-viewer.tsx"
  2241. - symbol: "PptxRendererPreviewDocument"
  2242. file: "packages/ui/src/presentation/pptxRendererPreviewEngine.ts"
  2243. - id: "surface.composer-presentation-reference"
  2244. kind: "ui-surface"
  2245. label: "Conversation Composer PPTX element reference chip"
  2246. codeSeeds:
  2247. - symbol: "ConversationComposer"
  2248. file: "packages/ui/src/v4/ConversationComposer.tsx"
  2249. - symbol: "PptxElementReferenceChip"
  2250. file: "packages/ui/src/v4/composer/PptxElementReferenceChip.tsx"
  2251. - symbol: "serializeComposerPromptContexts"
  2252. file: "packages/ui/src/v4/composer/composerPromptContexts.ts"
  2253. - id: "surface.computer-use-task-experience"
  2254. kind: "ui-surface"
  2255. label: "Computer Use task, permission, and takeover experience"
  2256. codeSeeds:
  2257. - symbol: "ComputerUseSection"
  2258. file: "packages/ui/src/settings/ComputerUseSection.tsx"
  2259. - symbol: "useCuaPermissionStatus"
  2260. file: "packages/ui/src/hooks/useCuaPermissionStatus.ts"
  2261. - symbol: "CuaToolCallBlock"
  2262. file: "packages/ui/src/ToolCallBlocks/renderers/cua.tsx"
  2263. - symbol: "createWindowsCuaOperationIndicator"
  2264. file: "packages/desktop/src/main/windowsCuaOperationIndicator.ts"
  2265. - symbol: "createCuaOperationTurnTracker"
  2266. file: "packages/services/src/zcode-agent/cuaOperationTurnTracker.ts"
  2267. - id: "surface.browser-use-side-pane-guest"
  2268. kind: "ui-surface"
  2269. label: "Browser Use side pane guest and background capture layer"
  2270. codeSeeds:
  2271. - symbol: "BrowserUseSidePaneContent"
  2272. file: "packages/ui/src/browser-use/BrowserUseSidePaneContent.tsx"
  2273. - symbol: "UnifiedBrowserView"
  2274. file: "packages/ui/src/browser-use/UnifiedBrowserView.tsx"
  2275. - id: "surface.human-browser-side-pane-guest"
  2276. kind: "ui-surface"
  2277. label: "Human-opened Browser side pane guest"
  2278. codeSeeds:
  2279. - symbol: "AnimatedSidePanePanel"
  2280. file: "packages/ui/src/app-shell/AnimatedSidePanePanel.tsx"
  2281. - symbol: "UnifiedBrowserView"
  2282. file: "packages/ui/src/browser-use/UnifiedBrowserView.tsx"
  2283. - symbol: "useAppPanels"
  2284. file: "packages/ui/src/app-shell/useAppPanels.ts"
  2285. - id: "surface.desktop-network-policy-setting"
  2286. kind: "ui-surface"
  2287. label: "Desktop HTTP proxy, No Proxy, and custom certificate settings"
  2288. codeSeeds:
  2289. - symbol: "GeneralSectionContent"
  2290. file: "packages/ui/src/settingsPageHelpers.tsx"
  2291. - symbol: "SettingsPage"
  2292. file: "packages/ui/src/SettingsPage.tsx"
  2293. - id: "surface.browser-tab-shell"
  2294. kind: "ui-surface"
  2295. label: "Desktop Browser and Browser Use logical tab shell"
  2296. codeSeeds:
  2297. - symbol: "AnimatedSidePanePanel"
  2298. file: "packages/ui/src/app-shell/AnimatedSidePanePanel.tsx"
  2299. - symbol: "BrowserUseSidePaneContent"
  2300. file: "packages/ui/src/browser-use/BrowserUseSidePaneContent.tsx"
  2301. - symbol: "UnifiedBrowserView"
  2302. file: "packages/ui/src/browser-use/UnifiedBrowserView.tsx"
  2303. - id: "surface.project-task-list"
  2304. kind: "ui-surface"
  2305. label: "Project workspace task list"
  2306. aliases:
  2307. - "Project sidebar"
  2308. - "workspace task rows"
  2309. - "项目任务列表"
  2310. codeSeeds:
  2311. - symbol: "ProjectSidebar"
  2312. file: "packages/ui/src/project-sidebar/index.tsx"
  2313. - symbol: "ProjectSections"
  2314. file: "packages/ui/src/project-sidebar/ProjectSections.tsx"
  2315. - symbol: "ProjectTaskRows"
  2316. file: "packages/ui/src/project-sidebar/ProjectTaskRows.tsx"
  2317. - id: "capability.task-title-overflow-marquee"
  2318. kind: "capability"
  2319. label: "Task title overflow fade and row-hover marquee"
  2320. aliases:
  2321. - "task title marquee"
  2322. - "task name mask"
  2323. - "task 名称走马灯"
  2324. - "task 名称 mask"
  2325. docs:
  2326. - "docs/ui/task-item-title-overflow.md"
  2327. codeSeeds:
  2328. - symbol: "TaskTitleOverflowText"
  2329. file: "packages/ui/src/components/TaskTitleOverflowText.tsx"
  2330. - id: "shared-ui.task-title-overflow-text"
  2331. kind: "shared-ui"
  2332. label: "Shared task title overflow and marquee renderer"
  2333. codeSeeds:
  2334. - symbol: "TaskTitleOverflowText"
  2335. file: "packages/ui/src/components/TaskTitleOverflowText.tsx"
  2336. - id: "surface.preview-pane-office-file"
  2337. kind: "ui-surface"
  2338. label: "Preview Pane Office file surface"
  2339. codeSeeds:
  2340. - symbol: "PreviewPane"
  2341. file: "packages/ui/src/PreviewPane.tsx"
  2342. - symbol: "PreviewPaneOfficeContent"
  2343. file: "packages/ui/src/previewPaneOfficeContent.tsx"
  2344. - id: "surface.conversation-assistant-file-preview"
  2345. kind: "ui-surface"
  2346. label: "Conversation assistant file preview cards"
  2347. codeSeeds:
  2348. - symbol: "AssistantPreviewCards"
  2349. file: "packages/ui/src/AssistantPreviewCards.tsx"
  2350. - symbol: "AssistantTextRowView"
  2351. file: "packages/ui/src/v4/ConversationRowView.tsx"
  2352. - id: "surface.git-review-file-actions"
  2353. kind: "ui-surface"
  2354. label: "Git review file context actions"
  2355. aliases:
  2356. - "Review file manager action"
  2357. - "审查区文件管理器"
  2358. codeSeeds:
  2359. - symbol: "GitPane"
  2360. file: "packages/ui/src/GitPane.tsx"
  2361. - symbol: "GitPaneChangeCard"
  2362. file: "packages/ui/src/GitPaneChangeCard.tsx"
  2363. - id: "shared-ui.remote-file-context-actions"
  2364. kind: "shared-ui"
  2365. label: "Workspace-scoped remote file context actions"
  2366. codeSeeds:
  2367. - symbol: "useFileContextActions"
  2368. file: "packages/ui/src/hooks/useFileContextActions.ts"
  2369. - symbol: "useTaskListItemContextActions"
  2370. file: "packages/ui/src/useTaskListItemContextActions.ts"
  2371. - symbol: "useWorkspaceOpenInEditorTarget"
  2372. file: "packages/ui/src/hooks/useWorkspaceOpenInEditorTarget.ts"
  2373. - id: "surface.grouped-task-list"
  2374. kind: "ui-surface"
  2375. label: "Controller-owned cross-host grouped task view"
  2376. aliases:
  2377. - "Group sidebar"
  2378. - "grouped tasks"
  2379. - "分组任务列表"
  2380. docs:
  2381. - "docs/superpowers/specs/2026-09-09-virtual-project-design.md"
  2382. - "docs/ui/task-grouped-view.md"
  2383. codeSeeds:
  2384. - symbol: "TaskGroupedView"
  2385. file: "packages/ui/src/project-sidebar/TaskGroupedView.tsx"
  2386. - symbol: "useTaskGroups"
  2387. file: "packages/ui/src/project-sidebar/useTaskGroups.ts"
  2388. - symbol: "TaskGroupRepository"
  2389. file: "packages/services/src/task-groups/repository.ts"
  2390. - id: "surface.sidebar-search-view"
  2391. kind: "ui-surface"
  2392. label: "Sidebar capsule search and project/group/recent view switcher with option icons"
  2393. aliases: ["侧栏搜索", "最近更新", "按项目", "按分组", "sidebar filter"]
  2394. docs:
  2395. - "docs/superpowers/specs/2026-09-09-virtual-project-design.md"
  2396. codeSeeds:
  2397. - symbol: "ProjectSidebarNavigation"
  2398. file: "packages/ui/src/project-sidebar/ProjectSidebarNavigation.tsx"
  2399. - symbol: "ProjectSidebar"
  2400. file: "packages/ui/src/project-sidebar/index.tsx"
  2401. - id: "state.sidebar-view-preference"
  2402. kind: "state-owner"
  2403. label: "Client-local sidebar view and expansion preference"
  2404. codeSeeds:
  2405. - symbol: "useProjectSidebarPreferences"
  2406. file: "packages/ui/src/project-sidebar/useProjectSidebarPreferences.ts"
  2407. - id: "surface.recent-task-list"
  2408. kind: "ui-surface"
  2409. label: "Unarchived tasks in strict CLI update-time order with date headings and two-line cwd/time rows"
  2410. codeSeeds:
  2411. - symbol: "selectProjectRows"
  2412. file: "packages/ui/src/project-sidebar/view.ts"
  2413. - symbol: "ProjectTaskRows"
  2414. file: "packages/ui/src/project-sidebar/ProjectTaskRows.tsx"
  2415. - id: "surface.pinned-task-list"
  2416. kind: "ui-surface"
  2417. label: "Global pinned task list"
  2418. aliases:
  2419. - "Pinned sidebar"
  2420. - "已置顶"
  2421. - "置顶任务列表"
  2422. codeSeeds:
  2423. - symbol: "ProjectTaskRows"
  2424. file: "packages/ui/src/project-sidebar/ProjectTaskRows.tsx"
  2425. - id: "surface.mobile-remote-task-home"
  2426. kind: "ui-surface"
  2427. label: "Mobile remote task home"
  2428. aliases:
  2429. - "mobile task list"
  2430. - "remote task status"
  2431. - "手机远控任务首页"
  2432. - "手机任务状态"
  2433. docs:
  2434. - "docs/web-remote-control/mobile-task-home-design.md"
  2435. codeSeeds:
  2436. - symbol: "WebRemoteControlMobileTaskHome"
  2437. file: "packages/ui/src/WebRemoteControlMobileTaskHome.tsx"
  2438. - symbol: "buildWebRemoteControlTaskTargets"
  2439. file: "packages/ui/src/lib/webRemoteControlTaskIndex.ts"
  2440. - id: "surface.desktop-web-remote-control-dialog"
  2441. kind: "ui-surface"
  2442. label: "Desktop Web Remote Control dialog"
  2443. aliases:
  2444. - "Web Remote Control QR dialog"
  2445. - "手机远控二维码弹窗"
  2446. docs:
  2447. - "docs/web-remote-control/web-remote-control-architecture.md"
  2448. codeSeeds:
  2449. - symbol: "WebRemoteControlDialog"
  2450. file: "packages/ui/src/web-remote-control/WebRemoteControlDialog.tsx"
  2451. - id: "state.task-list-row-projection"
  2452. kind: "state-owner"
  2453. label: "Task list row and membership projection"
  2454. codeSeeds:
  2455. - symbol: "useProjectTree"
  2456. file: "packages/ui/src/project-sidebar/useProjectTree.ts"
  2457. - symbol: "applyProjectTaskActivities"
  2458. file: "packages/ui/src/project-sidebar/view.ts"
  2459. - id: "state.preview-pane-office-render"
  2460. kind: "state-owner"
  2461. label: "Preview Pane local Office render lifecycle"
  2462. codeSeeds:
  2463. - symbol: "PreviewPaneOfficeDocxContent"
  2464. file: "packages/ui/src/previewPaneOfficeDocxContent.tsx"
  2465. - id: "state.pptx-preview-element-selection"
  2466. kind: "state-owner"
  2467. label: "PPTX viewer generation-scoped element selection"
  2468. codeSeeds:
  2469. - symbol: "PptxPreviewViewer"
  2470. file: "packages/ui/src/components/ui/pptx-preview-viewer.tsx"
  2471. - id: "state.pptx-preview-ai-edit-draft"
  2472. kind: "state-owner"
  2473. label: "PPTX viewer-local AI edit comment draft"
  2474. codeSeeds:
  2475. - symbol: "PptxSelectionActionBar"
  2476. file: "packages/ui/src/components/ui/pptx-selection-action-bar.tsx"
  2477. - symbol: "PptxPreviewViewer"
  2478. file: "packages/ui/src/components/ui/pptx-preview-viewer.tsx"
  2479. - id: "state.composer-presentation-reference-draft"
  2480. kind: "state-owner"
  2481. label: "Renderer-local scoped Composer PPTX references"
  2482. codeSeeds:
  2483. - symbol: "ConversationComposer"
  2484. file: "packages/ui/src/v4/ConversationComposer.tsx"
  2485. - id: "state.pptx-reference-preview-navigation"
  2486. kind: "state-owner"
  2487. label: "Renderer-local PPTX reference file and page navigation request"
  2488. codeSeeds:
  2489. - symbol: "PptxPreviewViewer"
  2490. file: "packages/ui/src/components/ui/pptx-preview-viewer.tsx"
  2491. - symbol: "openCodeViewerSidePane"
  2492. file: "packages/ui/src/lib/workspaceSidePane.ts"
  2493. - id: "state.web-remote-task-target-projection"
  2494. kind: "state-owner"
  2495. label: "Web remote task target projection"
  2496. codeSeeds:
  2497. - symbol: "buildWebRemoteControlTaskTargets"
  2498. file: "packages/ui/src/lib/webRemoteControlTaskIndex.ts"
  2499. - id: "service.zcode-task-list"
  2500. kind: "service"
  2501. label: "ZCode task list service"
  2502. codeSeeds:
  2503. - symbol: "IZCodeTaskService"
  2504. file: "packages/services/src/session/zcodeTaskService.ts"
  2505. - id: "service.workspace-file-binary-preview"
  2506. kind: "service"
  2507. label: "Workspace-scoped bounded binary preview read"
  2508. codeSeeds:
  2509. - symbol: "readBinaryPreview"
  2510. file: "packages/services/src/file/fileService.ts"
  2511. - id: "service.zcode-task-index-syncer"
  2512. kind: "service"
  2513. label: "Sessions-index to task-index synchronizer"
  2514. codeSeeds:
  2515. - symbol: "createZCodeTaskIndexSyncer"
  2516. file: "packages/services/src/zcode-agent/zcodeTaskIndexSyncer.ts"
  2517. - id: "state.composer-text-draft"
  2518. kind: "state"
  2519. label: "Text-only Composer draft persistence"
  2520. docs: ["docs/ui/composer-text-draft-persistence.md", "docs/ui/project-task-draft-lifecycle.md"]
  2521. codeSeeds:
  2522. - {
  2523. file: "packages/ui/src/v4/composer/composerDraftStore.ts",
  2524. symbol: "persistV4ComposerDraft",
  2525. }
  2526. - {
  2527. file: "packages/ui/src/v4/composer/useDraftConfigControl.ts",
  2528. symbol: "useDraftConfigControl",
  2529. }
  2530. - { file: "packages/ui/src/lib/composerRecent.ts", symbol: "acceptComposerRecentReceipt" }
  2531. - { file: "packages/ui/src/v4/pendingCommandRegistry.ts", symbol: "PendingCommandRegistry" }
  2532. - {
  2533. file: "packages/ui/src/root/useRootWorkspaceActions.ts",
  2534. symbol: "useRootWorkspaceActions",
  2535. }
  2536. - { file: "packages/services/src/project/index.ts", symbol: "createProjectService" }
  2537. - {
  2538. file: "packages/ui/src/v4/composer/composerDraftWorkspaceTransfer.ts",
  2539. symbol: "captureV4ComposerDraftHandoff",
  2540. }
  2541. - {
  2542. file: "packages/ui/src/v4/composer/composerDraftStore.ts",
  2543. symbol: "clearV4ComposerDraftTaskGroup",
  2544. }
  2545. invariants:
  2546. - "A Root draft with no original ModelSelection adopts the first valid target-host preferredSelection when providers become ready, preserving text, editor state, permission and Plan. Existing selections, including invalid ones, and existing/imported Sessions are never replaced by this rule. Recent still changes only on accepted Submission."
  2547. - "Only non-whitespace text creates a durable draft. Empty controls stay in the active Composer; New Task initializes from client-local host/project Recent; unclassified tasks have their own scope. Session restoration keeps draft text/model but takes permission and Plan from the current snapshot."
  2548. - "Historical grant/Plan records establish an observation baseline on entry; only newly observed changes update the mounted Composer. Observation IDs are never persisted in drafts. Reads are side-effect free."
  2549. - "Project/group creation intent accompanies durable text. Project ID isolates Root drafts even when primary roots match; formal session drafts retain workspace/session identity. Accepted user Submission updates frozen project Recent through the pending command registry. A pending task draft ID reuses its directory until accepted and protects later drafts from late acknowledgements."
  2550. - id: "surface.conversation-model-control"
  2551. kind: "ui-surface"
  2552. label: "Conversation composer model control"
  2553. codeSeeds:
  2554. - symbol: "V4ComposerModelControlsImpl"
  2555. file: "packages/ui/src/v4/composer/V4ComposerToolbar.tsx"
  2556. - id: "surface.subagent-session-detail"
  2557. kind: "ui-surface"
  2558. label: "Read-only Subagent session conversation detail"
  2559. aliases:
  2560. - "Subagent detail tab"
  2561. - "child session detail"
  2562. - "子智能体详情"
  2563. docs:
  2564. - "docs/subagent-session-side-tabs.md"
  2565. - "docs/v4-composer-api-retry-status.md"
  2566. - "docs/chat/manual-model-switch-resolution-chain.md"
  2567. codeSeeds:
  2568. - symbol: "SubagentSessionSidePane"
  2569. file: "packages/ui/src/app-shell/SubagentSessionSidePane.tsx"
  2570. - symbol: "SessionPane"
  2571. file: "packages/ui/src/v4/SessionPane.tsx"
  2572. - symbol: "ConversationTimeline"
  2573. file: "packages/ui/src/v4/ConversationTimeline.tsx"
  2574. - symbol: "ConversationTurnGroup"
  2575. file: "packages/ui/src/v4/ConversationTurnGroup.tsx"
  2576. - id: "surface.conversation-query-edit"
  2577. kind: "ui-surface"
  2578. label: "Conversation real-user query inline edit"
  2579. aliases:
  2580. - "edit user query"
  2581. - "编辑用户消息"
  2582. - "队列消费消息编辑"
  2583. codeSeeds:
  2584. - symbol: "ConversationRowView"
  2585. file: "packages/ui/src/v4/ConversationRowView.tsx"
  2586. - symbol: "SessionPane"
  2587. file: "packages/ui/src/v4/SessionPane.tsx"
  2588. - id: "surface.parent-task-blocking-interaction"
  2589. kind: "ui-surface"
  2590. label: "Parent task permission and user-input dialogs"
  2591. aliases:
  2592. - "subagent permission"
  2593. - "subagent AskUserQuestion"
  2594. - "子代理权限"
  2595. - "子代理提问"
  2596. codeSeeds:
  2597. - symbol: "V4InteractionDialogs"
  2598. file: "packages/ui/src/v4/V4InteractionDialogs.tsx"
  2599. - symbol: "onPermissionRequested"
  2600. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  2601. - id: "surface.conversation-tool-call"
  2602. kind: "ui-surface"
  2603. label: "Conversation tool call cards"
  2604. aliases:
  2605. - "TaskOutput card"
  2606. - "RespondToCoordinator card"
  2607. - "工具调用卡片"
  2608. - "CUA Group"
  2609. - "Computer Use 工具聚合"
  2610. docs:
  2611. - "docs/ui/tool-display-rendering.md"
  2612. - "docs/task-output-contract.md"
  2613. - "docs/subagent-respond-to-coordinator.md"
  2614. - "docs/cua/cua-tool-app-identity-summary.md"
  2615. codeSeeds:
  2616. - symbol: "resolveToolCallRenderer"
  2617. file: "packages/ui/src/ToolCallBlocks.tsx"
  2618. - symbol: "toolCallRowToLegacyNode"
  2619. file: "packages/ui/src/v4/toolCallRowAdapter.ts"
  2620. - symbol: "ProductProjection"
  2621. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  2622. - symbol: "groupConsecutiveAssistantSummaries"
  2623. file: "packages/ui/src/v4/conversationAssistantWorkItems.ts"
  2624. - id: "surface.ask-user-question-auto-resolution-setting"
  2625. kind: "ui-surface"
  2626. label: "Settings interaction auto-resolution switch"
  2627. codeSeeds:
  2628. - symbol: "GeneralSectionContent"
  2629. file: "packages/ui/src/settingsPageHelpers.tsx"
  2630. - symbol: "SettingsPage"
  2631. file: "packages/ui/src/SettingsPage.tsx"
  2632. - id: "surface.message-stream-reasoning-setting"
  2633. kind: "ui-surface"
  2634. label: "Settings message stream reasoning visibility switch"
  2635. codeSeeds:
  2636. - symbol: "GeneralSectionContent"
  2637. file: "packages/ui/src/settingsPageHelpers.tsx"
  2638. - symbol: "SettingsPage"
  2639. file: "packages/ui/src/SettingsPage.tsx"
  2640. - id: "state.conversation-reasoning-visibility"
  2641. kind: "state-owner"
  2642. label: "Renderer-resolved conversation reasoning visibility"
  2643. codeSeeds:
  2644. - symbol: "SessionPane"
  2645. file: "packages/ui/src/v4/SessionPane.tsx"
  2646. - symbol: "isConversationReasoningRowVisible"
  2647. file: "packages/ui/src/v4/conversationRowContext.ts"
  2648. - id: "surface.data-directory-setting"
  2649. kind: "ui-surface"
  2650. label: "Settings data storage directory"
  2651. codeSeeds:
  2652. - symbol: "GeneralSectionContent"
  2653. file: "packages/ui/src/settingsPageHelpers.tsx"
  2654. - symbol: "SettingsPage"
  2655. file: "packages/ui/src/SettingsPage.tsx"
  2656. - id: "surface.model-io-full-retention-setting"
  2657. kind: "ui-surface"
  2658. label: "Settings ModelIO full retention switch"
  2659. codeSeeds:
  2660. - symbol: "GeneralSectionContent"
  2661. file: "packages/ui/src/settingsPageHelpers.tsx"
  2662. - symbol: "SettingsPage"
  2663. file: "packages/ui/src/SettingsPage.tsx"
  2664. - id: "surface.conversation-query-navigator"
  2665. kind: "ui-surface"
  2666. label: "Conversation complete query navigator rail"
  2667. codeSeeds:
  2668. - symbol: "ConversationTurnNavigator"
  2669. file: "packages/ui/src/v4/ConversationTurnNavigator.tsx"
  2670. - symbol: "ConversationTimeline"
  2671. file: "packages/ui/src/v4/ConversationTimeline.tsx"
  2672. - id: "surface.conversation-composer-attachments"
  2673. kind: "ui-surface"
  2674. label: "Conversation composer attachments"
  2675. codeSeeds:
  2676. - symbol: "useComposerAttachments"
  2677. file: "packages/ui/src/v4/composer/useComposerAttachments.ts"
  2678. - id: "surface.conversation-sent-media-preview"
  2679. kind: "ui-surface"
  2680. label: "Sent conversation image and video preview"
  2681. aliases:
  2682. - "sent video preview"
  2683. - "已发送视频预览"
  2684. - "媒体附件预览"
  2685. docs:
  2686. - "docs/plans/2026-08-17-video-input-support-plan.md"
  2687. - "docs/conversation-session-case-catalog.md"
  2688. codeSeeds:
  2689. - symbol: "UserInputAttachmentList"
  2690. file: "packages/ui/src/v4/ConversationRowView.tsx"
  2691. - symbol: "ChatMediaAttachmentPreviewDialog"
  2692. file: "packages/ui/src/ChatMediaAttachmentPreviewDialog.tsx"
  2693. - symbol: "ConversationV4Gateway.attachmentRead"
  2694. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/v4-gateway.ts"
  2695. - symbol: "ConversationV4Gateway.attachmentPreviewSource"
  2696. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/v4-gateway.ts"
  2697. - symbol: "installLocalMediaPreviewProtocol"
  2698. file: "packages/desktop/src/main/localMediaPreviewProtocol.ts"
  2699. - id: "surface.automation-edit"
  2700. kind: "ui-surface"
  2701. label: "Automation edit model control"
  2702. codeSeeds:
  2703. - symbol: "AutomationEditView"
  2704. file: "packages/ui/src/settings/AutomationEditView.tsx"
  2705. - id: "surface.automation-template-gallery"
  2706. kind: "ui-surface"
  2707. label: "Scheduled and Off-Peak template gallery"
  2708. aliases:
  2709. - "scheduled-task templates"
  2710. - "off-peak-task templates"
  2711. - "自动化模板"
  2712. codeSeeds:
  2713. - symbol: "AutomationsSection"
  2714. file: "packages/ui/src/settings/AutomationsSection.tsx"
  2715. - symbol: "AutomationTemplateSkeletonGrid"
  2716. file: "packages/ui/src/settings/AutomationTemplateSkeletonGrid.tsx"
  2717. - id: "surface.off-peak-home-template-carousel"
  2718. kind: "ui-surface"
  2719. label: "New Task Off-Peak template carousel"
  2720. codeSeeds:
  2721. - symbol: "OffPeakNewTaskEntry"
  2722. file: "packages/ui/src/v4/OffPeakNewTaskEntry.tsx"
  2723. - id: "surface.off-peak-creation"
  2724. kind: "ui-surface"
  2725. label: "Off-Peak creation entries and result reporting"
  2726. codeSeeds:
  2727. - symbol: "OffPeakNewTaskEntry"
  2728. file: "packages/ui/src/v4/OffPeakNewTaskEntry.tsx"
  2729. - symbol: "handleOffPeakSubmit"
  2730. file: "packages/ui/src/settings/AutomationsSection.tsx"
  2731. - id: "surface.off-peak-upgrade"
  2732. kind: "ui-surface"
  2733. label: "Off-Peak Coding Plan upgrade entries"
  2734. codeSeeds:
  2735. - symbol: "OffPeakNewTaskEntry"
  2736. file: "packages/ui/src/v4/OffPeakNewTaskEntry.tsx"
  2737. - symbol: "handleOpenCodingPlanUpgrade"
  2738. file: "packages/ui/src/settings/AutomationsSection.tsx"
  2739. - id: "surface.conversation-automation-tools"
  2740. kind: "ui-surface"
  2741. label: "Conversation automation management tools"
  2742. aliases:
  2743. - "CronCreate"
  2744. - "CronList"
  2745. - "CronUpdate"
  2746. - "CronDelete"
  2747. - "会话内定时任务管理"
  2748. codeSeeds:
  2749. - symbol: "cronUpdateToolEntry"
  2750. file: "apps/zcode-cli/packages/core/src/tool/handlers/cron.ts"
  2751. - symbol: "createProtocolAutomationPort"
  2752. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/automation-port.ts"
  2753. - symbol: "resolveCronAutomationTurnCards"
  2754. file: "packages/ui/src/v4/ConversationTurnGroup.tsx"
  2755. - id: "surface.user-subagent-form"
  2756. kind: "ui-surface"
  2757. label: "User Subagent form model control"
  2758. codeSeeds:
  2759. - symbol: "SubagentForm"
  2760. file: "packages/ui/src/settings/SubagentsSection.tsx"
  2761. - id: "surface.builtin-subagent-model"
  2762. kind: "ui-surface"
  2763. label: "Built-in and plugin Subagent model override"
  2764. codeSeeds:
  2765. - symbol: "SubagentModelOverrideControl"
  2766. file: "packages/ui/src/settings/SubagentsSection.tsx"
  2767. - id: "surface.provider-settings"
  2768. kind: "ui-surface"
  2769. label: "Model provider settings and model capability editor"
  2770. docs:
  2771. - "docs/working-memory/provider-refactor/steps/todo-98-builtin-option-map-formatting-regression.md"
  2772. - "docs/working-memory/provider-refactor/steps/todo-93-account-plan-loss-manual-switch.md"
  2773. - "docs/working-memory/provider-refactor/steps/todo-92-model-smart-config-and-override-feedback.md"
  2774. - "docs/working-memory/provider-refactor/steps/todo-91-connectivity-probe-prompt-contract.md"
  2775. - "docs/working-memory/provider-refactor/steps/todo-90-model-add-edit-shared-recommended-draft.md"
  2776. - "docs/superpowers/specs/2026-06-04-model-provider-model-editor-design.md"
  2777. - "docs/superpowers/specs/2026-08-21-model-provider-modality-settings-design.md"
  2778. - "docs/working-memory/provider-refactor/design/registry/model-membership-and-enablement.md"
  2779. - "docs/working-memory/provider-refactor/design/registry/provider-and-model-configuration-overview.md"
  2780. - "docs/working-memory/provider-refactor/design/registry/settings.md"
  2781. - "docs/working-memory/provider-refactor/steps/todo-21-zcode-builtin-config-ownership-and-model-activation-order.md"
  2782. - "docs/working-memory/provider-refactor/steps/todo-61-provider-template-picker-and-brand-metadata.md"
  2783. codeSeeds:
  2784. - symbol: "ModelProviderSection"
  2785. file: "packages/ui/src/settings/ModelProviderSection.tsx"
  2786. - symbol: "createAccountConnectionRefreshObserver"
  2787. file: "packages/ui/src/root/accountConnectionRefreshObserver.ts"
  2788. - symbol: "refreshRestoredOAuthProviderFamilyAfterStartup"
  2789. file: "packages/ui/src/root/oauthProviderFamilySelectionRefresh.ts"
  2790. - symbol: "useRootOAuthEffects"
  2791. file: "packages/ui/src/root/useRootOAuthEffects.ts"
  2792. - symbol: "ProviderModelMetadataDialog"
  2793. file: "packages/ui/src/settings/model-provider-section/ProviderModelMetadataDialog.tsx"
  2794. - symbol: "ProviderModelInputModalityOptions"
  2795. file: "packages/ui/src/settings/model-provider-section/ProviderModelModalityOptions.tsx"
  2796. - symbol: "ModelRowInput"
  2797. file: "packages/ui/src/settings/model-provider-section/ProviderFormControls.tsx"
  2798. - symbol: "InlineEditableProviderCard"
  2799. file: "packages/ui/src/settings/model-provider-section/InlineEditableProviderCard.tsx"
  2800. - symbol: "ModelProviderSectionDetail"
  2801. file: "packages/ui/src/settings/model-provider-section/Detail.tsx"
  2802. - symbol: "ProviderTemplatePicker"
  2803. file: "packages/ui/src/settings/model-provider-section/ProviderTemplatePicker.tsx"
  2804. - symbol: "ProviderLogo"
  2805. file: "packages/ui/src/settings/model-provider-section/ProviderLogo.tsx"
  2806. - symbol: "ProviderDetailFeedbackBoundary"
  2807. file: "packages/ui/src/settings/model-provider-section/ProviderDetailFeedback.tsx"
  2808. - symbol: "resolveProviderModelDraftCommit"
  2809. file: "packages/ui/src/settings/model-provider-section/ProviderModelMetadata.ts"
  2810. - id: "capability.customize-capability-search"
  2811. kind: "capability"
  2812. label: "Scope-aware Plugin capability search"
  2813. aliases:
  2814. - "Plugin search"
  2815. - "Customize search"
  2816. - "插件 MCP Skills 搜索"
  2817. docs:
  2818. - "docs/plugin-capabilities-settings.md"
  2819. codeSeeds:
  2820. - symbol: "PluginsSection"
  2821. file: "packages/ui/src/settings/PluginsSection.tsx"
  2822. - id: "surface.customize-capability-settings"
  2823. kind: "ui-surface"
  2824. label: "Plugin, MCPs and Skills settings"
  2825. codeSeeds:
  2826. - symbol: "PluginsSection"
  2827. file: "packages/ui/src/settings/PluginsSection.tsx"
  2828. - symbol: "McpSettingsSection"
  2829. file: "packages/ui/src/settings/McpSettingsSection.tsx"
  2830. - symbol: "SkillsSection"
  2831. file: "packages/ui/src/settings/SkillsSection.tsx"
  2832. - id: "state.customize-tab-search-query"
  2833. kind: "state-owner"
  2834. label: "Plugin tab-local search query state"
  2835. codeSeeds:
  2836. - symbol: "PluginsSection"
  2837. file: "packages/ui/src/settings/PluginsSection.tsx"
  2838. - id: "evidence.customize-capability-settings-tests"
  2839. kind: "evidence"
  2840. label: "Plugin scope projection and search tests"
  2841. docs:
  2842. - "docs/plugin-capabilities-settings.md"
  2843. codeSeeds: [] # App 单测已退役,当前没有该层自动化证据。
  2844. - id: "capability.skill-catalog-discovery"
  2845. kind: "capability"
  2846. label: "Workspace and user Skill catalog discovery"
  2847. aliases:
  2848. - "Skills discovery"
  2849. - ".zcode/skills and .agents/skills"
  2850. - "技能目录发现"
  2851. - "用户技能引用"
  2852. docs:
  2853. - "docs/external-agent-skills-import.md"
  2854. - "docs/ui/mention-panel-layout.md"
  2855. codeSeeds:
  2856. - symbol: "resolveDefaultSkillRoots"
  2857. file: "apps/zcode-cli/packages/adapters/src/skills/roots.ts"
  2858. - symbol: "createSkillsService"
  2859. file: "packages/services/src/skills/skillsService.ts"
  2860. - symbol: "filterSkillsForProvider"
  2861. file: "packages/ui/src/lib/skillSourceFilter.ts"
  2862. - id: "surface.composer-skill-compatibility-picker"
  2863. kind: "ui-surface"
  2864. label: "Composer compatible Skill picker ($ and Yen aliases)"
  2865. aliases:
  2866. - "$ Skills picker"
  2867. - "$ 面板"
  2868. - "¥ 技能面板"
  2869. codeSeeds:
  2870. - symbol: "MentionPlugin"
  2871. file: "packages/ui/src/mentions/MentionPlugin.tsx"
  2872. - symbol: "useSkillsMentionProvider"
  2873. file: "packages/ui/src/mentions/providers/skillsMentionProvider.ts"
  2874. - id: "service.workspace-skills-catalog"
  2875. kind: "service"
  2876. label: "Host workspace and user Skills catalog service"
  2877. codeSeeds:
  2878. - symbol: "createSkillsService"
  2879. file: "packages/services/src/skills/skillsService.ts"
  2880. - symbol: "discoverSkills"
  2881. file: "packages/services/src/skills/skillsService.ts"
  2882. - id: "persistence.skill-roots"
  2883. kind: "persistence"
  2884. label: "Workspace and user .zcode/skills and .agents/skills roots"
  2885. docs:
  2886. - "docs/external-agent-skills-import.md"
  2887. codeSeeds:
  2888. - symbol: "resolveDefaultSkillRoots"
  2889. file: "apps/zcode-cli/packages/adapters/src/skills/roots.ts"
  2890. - symbol: "resolveAncestorWorkspaceRoots"
  2891. file: "packages/services/src/skills/skillsService.ts"
  2892. - id: "evidence.skill-catalog-discovery-tests"
  2893. kind: "evidence"
  2894. label: "Skill root discovery and composer source filtering tests"
  2895. docs:
  2896. - "docs/external-agent-skills-import.md"
  2897. codeSeeds:
  2898. - file: "apps/zcode-cli/packages/adapters/tests/skills.test.ts"
  2899. - id: "capability.command-workspace-scope"
  2900. kind: "capability"
  2901. label: "Concrete Workspace scope selection for Commands"
  2902. aliases:
  2903. - "Command Workspace scope"
  2904. - "Command new Workspace selector"
  2905. - "命令工作区选择"
  2906. docs:
  2907. - "docs/settings-command-list.md"
  2908. codeSeeds:
  2909. - symbol: "CommandsSection"
  2910. file: "packages/ui/src/settings/CommandsSection.tsx"
  2911. - symbol: "CommandForm"
  2912. file: "packages/ui/src/settings/CommandForm.tsx"
  2913. - id: "surface.command-settings-editor"
  2914. kind: "ui-surface"
  2915. label: "Command settings create and edit form"
  2916. codeSeeds:
  2917. - symbol: "CommandsSection"
  2918. file: "packages/ui/src/settings/CommandsSection.tsx"
  2919. - symbol: "CommandForm"
  2920. file: "packages/ui/src/settings/CommandForm.tsx"
  2921. - id: "state.command-form-scope-key"
  2922. kind: "state-owner"
  2923. label: "Command form concrete User or Workspace scope key"
  2924. codeSeeds:
  2925. - symbol: "CommandsSection"
  2926. file: "packages/ui/src/settings/CommandsSection.tsx"
  2927. - id: "shared-ui.customize-scope-menu"
  2928. kind: "shared-ui"
  2929. label: "User and concrete Workspace scope menu"
  2930. codeSeeds:
  2931. - symbol: "PluginScopeMenu"
  2932. file: "packages/ui/src/settings/PluginScopeMenu.tsx"
  2933. - id: "service.workspace-commands"
  2934. kind: "service"
  2935. label: "Workspace-resolved Commands Host service"
  2936. codeSeeds:
  2937. - symbol: "useWorkspaceServicesResolution"
  2938. file: "packages/ui/src/hooks/useWorkspaceServices.tsx"
  2939. - symbol: "createCommandsService"
  2940. file: "packages/services/src/commands/commandsService.ts"
  2941. - id: "persistence.command-settings-directories"
  2942. kind: "persistence"
  2943. label: "User and Workspace command directories"
  2944. docs:
  2945. - "docs/settings-command-list.md"
  2946. codeSeeds:
  2947. - symbol: "getCommandsRootForStorage"
  2948. file: "packages/services/src/commands/commandsService.ts"
  2949. - id: "evidence.command-workspace-scope-tests"
  2950. kind: "evidence"
  2951. label: "Command Workspace scope selection tests"
  2952. docs:
  2953. - "docs/settings-command-list.md"
  2954. codeSeeds: [] # App 单测已退役,当前没有该层自动化证据。
  2955. - id: "surface.project-memory-settings"
  2956. kind: "ui-surface"
  2957. label: "Project Memory toggle and local-only project-first read-only viewer"
  2958. codeSeeds:
  2959. - symbol: "MemorySettingsSection"
  2960. file: "packages/ui/src/settings/MemorySettingsSection.tsx"
  2961. - symbol: "MemorySettingsViewer"
  2962. file: "packages/ui/src/settings/MemorySettingsViewer.tsx"
  2963. - id: "shared-ui.model-config-select"
  2964. kind: "shared-ui"
  2965. label: "ModelConfigSelect"
  2966. codeSeeds:
  2967. - symbol: "ModelConfigSelect"
  2968. file: "packages/ui/src/ModelConfigSelect.tsx"
  2969. - id: "shared-ui.model-select-groups"
  2970. kind: "shared-ui"
  2971. label: "Model selection option builder"
  2972. codeSeeds:
  2973. - symbol: "buildRegistryModelSelectGroups"
  2974. file: "packages/ui/src/lib/modelSelectionGroups.ts"
  2975. - id: "shared-ui.model-providers-hook"
  2976. kind: "shared-ui"
  2977. label: "Model provider registry hook"
  2978. codeSeeds:
  2979. - symbol: "useModelProviders"
  2980. file: "packages/ui/src/hooks/useModelProviders.ts"
  2981. - id: "state.conversation-projection"
  2982. kind: "state-owner"
  2983. label: "Conversation UI projection and current runtime config"
  2984. docs:
  2985. - "docs/conversation-protocol-declaration.md"
  2986. - "docs/v4-refactor/03-commands.md"
  2987. - "docs/v4-refactor/04-sync-and-recovery.md"
  2988. codeSeeds:
  2989. - symbol: "ConversationProjectionStore"
  2990. file: "packages/ui/src/v4/conversationProjectionStore.ts"
  2991. - symbol: "expectAcceptedInputProjection"
  2992. file: "packages/ui/src/v4/conversationProjectionStore.ts"
  2993. - symbol: "ProductProjection"
  2994. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  2995. invariants:
  2996. - "An accepted sendText waits for the same sourceCommandId queue item or real-user userInput row; complete silence triggers one same-sub recovery without synthesizing a row, creating a renderer queue, or replaying the command."
  2997. - "The watchdog reuses the trusted attachment's desktop-continuous or web-remote-replayable delivery boundary; it does not move conversation state into host, relay, or renderer-local queue."
  2998. - id: "state.cua-action-state-authority"
  2999. kind: "state-owner"
  3000. label: "CUA element action mutation epoch and authoritative post-state"
  3001. docs:
  3002. - "docs/cua/2026-08-18-ax-action-state-consistency.md"
  3003. codeSeeds:
  3004. - symbol: "registerMcpTools"
  3005. file: "apps/zcode-cli/packages/core/src/mcp/index.ts"
  3006. - symbol: "serializeOutput"
  3007. file: "apps/zcode-cli/packages/core/src/tool/executor/result-serialization.ts"
  3008. invariants:
  3009. - "Only zcode-cua owns pre/post state ids and mutation epochs; ZCode preserves or safely rejects their atomic projection."
  3010. - "A synced outcome and its post-state reach the model together; over-budget or malformed pairs become refresh_required."
  3011. - id: "state.message-history-model-provenance"
  3012. kind: "state-owner"
  3013. label: "Assistant model provenance in canonical model history"
  3014. codeSeeds:
  3015. - symbol: "MessageHistoryImpl"
  3016. file: "apps/zcode-cli/packages/core/src/agent/message-history.ts"
  3017. - symbol: "hydrateMessageHistoryFromSession"
  3018. file: "apps/zcode-cli/packages/core/src/agent/session-history-hydrator.ts"
  3019. - id: "state.subagent-child-runtime"
  3020. kind: "state-owner"
  3021. label: "Subagent child runtime events and tool execution"
  3022. codeSeeds:
  3023. - symbol: "createDefaultSubagentPort"
  3024. file: "apps/zcode-cli/packages/core/src/runtime/methods/subagent.ts"
  3025. - symbol: "mirrorSubagentToolEvent"
  3026. file: "apps/zcode-cli/packages/core/src/subagent/tool-event-mirror.ts"
  3027. - id: "state.mcp-tool-catalog-cache"
  3028. kind: "state-owner"
  3029. label: "Process-scoped sanitized MCP tool catalog cache"
  3030. docs:
  3031. - "docs/mcp-async-tool-catalog-cache.md"
  3032. - id: "state.assistant-file-preview-projection"
  3033. kind: "state-owner"
  3034. label: "Turn-local assistant file preview projection"
  3035. docs:
  3036. - "docs/ui/assistant-preview-cards.md"
  3037. codeSeeds:
  3038. - symbol: "buildAssistantPreviewCardsForAssistantTextRow"
  3039. file: "packages/ui/src/v4/assistantPreviewCards.ts"
  3040. - symbol: "resolveMarkdownFileLink"
  3041. file: "packages/ui/src/lib/markdownFileLink.ts"
  3042. - symbol: "SessionPane"
  3043. file: "packages/ui/src/v4/SessionPane.tsx"
  3044. - id: "state.browser-context-handle-registry"
  3045. kind: "state-owner"
  3046. label: "Agent-owned BrowserControl session and tab authority"
  3047. docs:
  3048. - "docs/mcp-stateless-node-repl.md"
  3049. - "docs/browser-use/2026-07-28-stateless-browser-use-mcp-spec.md"
  3050. codeSeeds:
  3051. - symbol: "createProtocolBrowserControlBroker"
  3052. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/browser-control-broker.ts"
  3053. - symbol: "requireSession"
  3054. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/server-types.ts"
  3055. - id: "state.browser-screenshot-surface-coordination"
  3056. kind: "state-owner"
  3057. label: "Desktop main transient browser screenshot surface groups"
  3058. codeSeeds:
  3059. - symbol: "DesktopBrowserScreenshotSurfaceCoordinator"
  3060. file: "packages/desktop/src/main/browserView/browserScreenshotSurfaceCoordinator.ts"
  3061. - symbol: "BrowserScreenshotSurfaceCoordinator"
  3062. file: "packages/desktop/src/main/browserView/browserScreenshotSurfaceContracts.ts"
  3063. - id: "state.browser-recording-job-registry"
  3064. kind: "state-owner"
  3065. label: "Desktop main transient Browser Use recording jobs"
  3066. docs:
  3067. - "docs/browser-use/2026-08-12-browser-webview-video-recording-spec.md"
  3068. codeSeeds:
  3069. - symbol: "BrowserGuestManager"
  3070. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  3071. - file: "packages/desktop/src/main/browserView/browserVideoRecorder.ts"
  3072. - id: "state.embedded-browser-resize-gesture"
  3073. kind: "state-owner"
  3074. label: "Renderer-local responsive viewport pointer gesture"
  3075. codeSeeds:
  3076. - symbol: "ResponsiveBrowserViewport"
  3077. file: "packages/ui/src/browser-use/ResponsiveBrowserViewport.tsx"
  3078. - id: "state.embedded-browser-fit-presentation"
  3079. kind: "state-owner"
  3080. label: "Renderer-local responsive Fit canvas presentation"
  3081. docs:
  3082. - "docs/browser-use/2026-07-15-responsive-browser-viewport-spec.md"
  3083. codeSeeds:
  3084. - symbol: "ResponsiveBrowserViewport"
  3085. file: "packages/ui/src/browser-use/ResponsiveBrowserViewport.tsx"
  3086. - symbol: "resolveBrowserViewportScale"
  3087. file: "packages/ui/src/browser-use/browserViewportZoom.ts"
  3088. - id: "state.embedded-browser-human-viewport-preference"
  3089. kind: "state-owner"
  3090. label: "App-global human Browser viewport presentation preference"
  3091. docs:
  3092. - "docs/browser-use/2026-07-15-responsive-browser-viewport-spec.md"
  3093. codeSeeds:
  3094. - symbol: "useResponsiveBrowserViewportControl"
  3095. file: "packages/ui/src/browser-use/useResponsiveBrowserViewportControl.ts"
  3096. - symbol: "useSettings"
  3097. file: "packages/ui/src/hooks/useSettingService.ts"
  3098. - id: "state.browser-tab-residency"
  3099. kind: "state-owner"
  3100. label: "Process-local logical Browser tab catalog and LRU activity"
  3101. docs:
  3102. - "docs/browser-use/2026-07-31-browser-tab-residency-budget-spec.md"
  3103. codeSeeds:
  3104. - symbol: "BrowserUseSidePaneTab"
  3105. file: "packages/ui/src/lib/workspaceSidePane.ts"
  3106. - symbol: "BrowserGuestManager"
  3107. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  3108. - id: "state.automation-form-draft"
  3109. kind: "state-owner"
  3110. label: "Automation edit React draft"
  3111. codeSeeds:
  3112. - symbol: "AutomationEditView"
  3113. file: "packages/ui/src/settings/AutomationEditView.tsx"
  3114. - id: "state.off-peak-turn-attribution"
  3115. kind: "state-owner"
  3116. label: "Turn-scoped Off-Peak telemetry attribution"
  3117. codeSeeds:
  3118. - symbol: "backgroundSeedFromTurnStarted"
  3119. file: "packages/ui/src/v4/telemetry/conversationTelemetrySupervisor.ts"
  3120. - symbol: "turnStartedFactSchema"
  3121. file: "packages/shared/src/zcode-protocol-v4/telemetry.ts"
  3122. - id: "state.coding-plan-purchase-funnel"
  3123. kind: "state-owner"
  3124. label: "Coding Plan purchase funnel context"
  3125. codeSeeds:
  3126. - symbol: "createCodingPlanFunnelContext"
  3127. file: "packages/ui/src/lib/codingPlanFunnelTelemetry.ts"
  3128. - symbol: "CodingPlanUpgradeDialogProvider"
  3129. file: "packages/ui/src/settings/CodingPlanUpgradeDialogProvider.tsx"
  3130. - symbol: "resolveCodingPlanEntryPlanStateFromProviderSettings"
  3131. file: "packages/ui/src/lib/codingPlanFunnelTelemetry.ts"
  3132. invariants:
  3133. - "Individual and Team entitled account Providers are Coding Plan; Start remains separate. Enabled/model readiness does not imply subscription ownership."
  3134. - "Provider ID compatibility is confined to event builders; actual Registry, selection, auth, and telemetry source facts remain unchanged."
  3135. - id: "state.subagent-form-draft"
  3136. kind: "state-owner"
  3137. label: "Subagent form draft"
  3138. codeSeeds:
  3139. - symbol: "SubagentForm"
  3140. file: "packages/ui/src/settings/SubagentsSection.tsx"
  3141. - id: "state.renderer-model-selection-read"
  3142. kind: "state-owner"
  3143. label: "Renderer target-host model selection read lifecycle"
  3144. codeSeeds:
  3145. - symbol: "useModelSelectionServiceView"
  3146. file: "packages/ui/src/hooks/useModelSelectionView.ts"
  3147. - symbol: "useModelSelectionView"
  3148. file: "packages/ui/src/hooks/useModelSelectionView.ts"
  3149. - id: "state.oauth-pending-callback"
  3150. kind: "state-owner"
  3151. label: "OAuth pending callback lifecycle"
  3152. codeSeeds:
  3153. - symbol: "OAuthService"
  3154. file: "packages/services/src/oauth/oauthService.ts"
  3155. - id: "state.provider-endpoint-routing-snapshot"
  3156. kind: "state-owner"
  3157. label: "Process-local routing registry; dynamic implementations own their snapshot"
  3158. codeSeeds:
  3159. - symbol: "resolveProcessProviderEndpointRoutingPort"
  3160. file: "apps/zcode-cli/packages/bootstrap/src/provider-endpoint-routing.ts"
  3161. - id: "service.model-provider"
  3162. kind: "service"
  3163. label: "Model provider service and registry"
  3164. codeSeeds:
  3165. - symbol: "IModelProviderService"
  3166. file: "packages/services/src/model-provider/modelProvider.ts"
  3167. - id: "service.provider-settings"
  3168. kind: "service"
  3169. label: "Target Environment provider settings service"
  3170. codeSeeds:
  3171. - symbol: "ProviderSettingsFacade"
  3172. file: "packages/provider/src/facades.ts"
  3173. - symbol: "ProviderConfigService"
  3174. file: "packages/provider/src/config-service.ts"
  3175. - symbol: "IProviderSettingsService"
  3176. file: "packages/services/src/model-provider/providerFacadeServices.ts"
  3177. - symbol: "useProviderSettingsServiceView"
  3178. file: "packages/ui/src/hooks/useProviderSettingsView.ts"
  3179. - id: "persistence.model-provider-config"
  3180. kind: "persistence"
  3181. label: "Sparse Personal provider membership, order and exact model configuration"
  3182. docs:
  3183. - "docs/working-memory/provider-refactor/design/registry/settings.md"
  3184. codeSeeds:
  3185. - symbol: "NodePersonalProviderConfigRepository"
  3186. file: "packages/provider-node/src/personal-provider-config-repository.ts"
  3187. - id: "service.workspace-file-existence-check"
  3188. kind: "service"
  3189. label: "Workspace Host cached file existence check"
  3190. docs:
  3191. - "docs/ui/assistant-preview-cards.md"
  3192. codeSeeds:
  3193. - symbol: "createFileService"
  3194. file: "packages/services/src/file/fileService.ts"
  3195. - id: "service.provider-endpoint-routing"
  3196. kind: "service"
  3197. label: "ZCode CLI provider endpoint routing service"
  3198. codeSeeds:
  3199. - symbol: "createProviderEndpointRoutingPort"
  3200. file: "apps/zcode-cli/packages/adapters/src/model/endpoint-routing-edition/index.ts"
  3201. - symbol: "createProviderEndpointRoutingFetch"
  3202. file: "apps/zcode-cli/packages/adapters/src/model/provider-endpoint-routing-fetch.ts"
  3203. - id: "service.active-session-model-limits"
  3204. kind: "service"
  3205. label: "Active session model limit synchronization"
  3206. codeSeeds:
  3207. - symbol: "refreshActiveWorkspaceSessionModelLimits"
  3208. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/active-session-model-limits.ts"
  3209. - symbol: "emitModelSelected"
  3210. file: "apps/zcode-cli/packages/core/src/runtime/methods/steering.ts"
  3211. - id: "service.automation"
  3212. kind: "service"
  3213. label: "Automation service"
  3214. codeSeeds:
  3215. - symbol: "AutomationService"
  3216. file: "packages/services/src/session/automationService.ts"
  3217. - id: "service.host-model-selection"
  3218. kind: "service"
  3219. label: "Target Workspace Host model selection service"
  3220. docs:
  3221. - "docs/working-memory/provider-refactor/steps/todo-13-target-host-model-selection-authority.md"
  3222. - "docs/working-memory/provider-refactor/steps/todo-34-model-selection-async-state-and-repo-wiki-draft.md"
  3223. codeSeeds:
  3224. - symbol: "IModelSelectionService"
  3225. file: "packages/services/src/model-provider/providerFacadeServices.ts"
  3226. - symbol: "useWorkspaceServicesResolution"
  3227. file: "packages/ui/src/hooks/useWorkspaceServices.tsx"
  3228. - symbol: "useModelSelectionServiceView"
  3229. file: "packages/ui/src/hooks/useModelSelectionView.ts"
  3230. - file: "packages/desktop/src/host/remoteWorkspaceServiceCollection.ts"
  3231. - id: "service.subagents"
  3232. kind: "service"
  3233. label: "Subagents service"
  3234. codeSeeds:
  3235. - symbol: "ISubagentsService"
  3236. file: "packages/services/src/subagents/subagents.ts"
  3237. - id: "service.conversation-row-actions"
  3238. kind: "service"
  3239. label: "Conversation row action command authority"
  3240. codeSeeds:
  3241. - symbol: "resolveRowActionTarget"
  3242. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  3243. - symbol: "editUserQuery"
  3244. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/commands/handlers/fork-edit-retry.ts"
  3245. - id: "service.selection-side-session-creation"
  3246. kind: "service"
  3247. label: "Selection side session command and atomic conversation fork"
  3248. codeSeeds:
  3249. - symbol: "createSelectionSideSession"
  3250. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/commands/handlers/selection-side-session.ts"
  3251. - symbol: "createSelectionSideConversation"
  3252. file: "apps/zcode-cli/packages/core/src/runtime/methods/session-fork.ts"
  3253. - id: "service.project-memory-extraction-lifecycle"
  3254. kind: "service"
  3255. label: "Project Memory Extraction scheduler lifecycle"
  3256. codeSeeds:
  3257. - symbol: "createMemoryExtractionScheduler"
  3258. file: "apps/zcode-cli/packages/core/src/memory/extraction.ts"
  3259. - symbol: "scheduleProjectMemoryExtraction"
  3260. file: "apps/zcode-cli/packages/core/src/runtime/helpers/project-memory-extraction.ts"
  3261. - symbol: "createSessionFacade"
  3262. file: "apps/zcode-cli/packages/bootstrap/src/app/session-facade.ts"
  3263. - id: "service.headless-cli-prompt-runtime"
  3264. kind: "service"
  3265. label: "Headless CLI prompt and target runtime"
  3266. codeSeeds:
  3267. - symbol: "runPrompt"
  3268. file: "apps/zcode-cli/packages/cli/src/prompt-command.ts"
  3269. - symbol: "run"
  3270. file: "apps/zcode-cli/packages/cli/src/run.ts"
  3271. - id: "service.project-memory-catalog"
  3272. kind: "service"
  3273. label: "Local Project Memory read-only catalog"
  3274. codeSeeds:
  3275. - symbol: "IMemoryService"
  3276. file: "packages/services/src/memory/memory.ts"
  3277. - symbol: "createMemoryService"
  3278. file: "packages/services/src/memory/memoryService.ts"
  3279. - id: "service.subagent-interaction-broker"
  3280. kind: "service"
  3281. label: "Subagent parent-routed blocking interaction broker"
  3282. codeSeeds:
  3283. - symbol: "createSubagentInteractionBroker"
  3284. file: "apps/zcode-cli/packages/core/src/runtime/helpers/subagent-interaction-broker.ts"
  3285. - symbol: "createProtocolInteractionBroker"
  3286. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/interaction-broker.ts"
  3287. - id: "service.interaction-auto-resolution-runtime"
  3288. kind: "service"
  3289. label: "CLI interaction auto-resolution registry"
  3290. codeSeeds:
  3291. - symbol: "V4InteractionRegistry"
  3292. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/interaction-registry.ts"
  3293. - symbol: "syncAppRuntimePreferences"
  3294. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  3295. - symbol: "createZCodeAgentService"
  3296. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  3297. - symbol: "createBotRemoteWorkspaceService"
  3298. file: "packages/services/src/bots/botRemoteWorkspaceBridge.ts"
  3299. - symbol: "syncAppRuntimePreferences"
  3300. file: "packages/services/src/bots/botsService.ts"
  3301. - id: "service.conversation-rows-range"
  3302. kind: "service"
  3303. label: "Conversation read-only rows range query"
  3304. codeSeeds:
  3305. - symbol: "loadAllOlder"
  3306. file: "packages/ui/src/v4/conversationProjectionStore.ts"
  3307. - symbol: "getRowsRange"
  3308. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/conversation-topic-publisher.ts"
  3309. - id: "service.session-runtime-activation"
  3310. kind: "service"
  3311. label: "Persisted session history-first and runtime activation"
  3312. docs:
  3313. - "docs/v4-refactor/17-cold-resume-runtime-activation.md"
  3314. codeSeeds:
  3315. - symbol: "activateSessionForResume"
  3316. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/server-operations.ts"
  3317. - symbol: "ColdSessionResumeCoordinator"
  3318. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/cold-session-resume.ts"
  3319. - symbol: "createConversationV4Gateway"
  3320. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/v4-bridge.ts"
  3321. - id: "service.persisted-remote-session-repair"
  3322. kind: "service"
  3323. label: "Persisted remote session identity and path repair"
  3324. docs:
  3325. - "docs/v4-refactor/14-sessions-index.md"
  3326. codeSeeds:
  3327. - symbol: "repairPersistedRemoteSessionPaths"
  3328. file: "apps/zcode-cli/packages/core/src/runtime/helpers/persisted-remote-session-path-repair.ts"
  3329. - symbol: "claimLegacySessionWorkspace"
  3330. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/repositories/sessions.ts"
  3331. - symbol: "activateSessionForResume"
  3332. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/server-operations.ts"
  3333. - id: "service.mcp-session-runtime"
  3334. kind: "service"
  3335. label: "Session-scoped live MCP runtime"
  3336. codeSeeds:
  3337. - symbol: "McpPort"
  3338. file: "apps/zcode-cli/packages/contracts/src/interfaces/mcp.port.ts"
  3339. - symbol: "createMcpConnectionPool"
  3340. file: "apps/zcode-cli/packages/adapters/src/mcp/pool.ts"
  3341. - id: "service.shared-browser-use-mcp-runtime"
  3342. kind: "service"
  3343. label: "Workspace-scoped shared stateless node_repl MCP runtime"
  3344. docs:
  3345. - "docs/mcp-stateless-node-repl.md"
  3346. - "docs/browser-use/2026-07-28-stateless-browser-use-mcp-spec.md"
  3347. codeSeeds:
  3348. - symbol: "NodeMcpAdapter"
  3349. file: "apps/zcode-cli/packages/adapters/src/mcp/index.ts"
  3350. - symbol: "createMcpConnectionPool"
  3351. file: "apps/zcode-cli/packages/adapters/src/mcp/pool.ts"
  3352. - id: "service.oauth"
  3353. kind: "service"
  3354. label: "OAuth service"
  3355. codeSeeds:
  3356. - symbol: "OAuthService"
  3357. file: "packages/services/src/oauth/oauthService.ts"
  3358. - id: "service.telemetry-core"
  3359. kind: "service"
  3360. label: "Telemetry core report pipeline"
  3361. codeSeeds:
  3362. - symbol: "createTelemetryCore"
  3363. file: "packages/services/src/telemetry/telemetryCore.ts"
  3364. - id: "service.cli-agent-telemetry"
  3365. kind: "service"
  3366. label: "ZCode CLI agent OTLP telemetry"
  3367. codeSeeds:
  3368. - symbol: "AgentExecutionTelemetryRuntime"
  3369. file: "apps/zcode-cli/packages/telemetry/src/agent-trace-runtime.ts"
  3370. - symbol: "RuntimeTelemetryFacade"
  3371. file: "apps/zcode-cli/packages/core/src/telemetry/runtime-telemetry.ts"
  3372. - id: "service.off-peak-task"
  3373. kind: "service"
  3374. label: "Off-Peak ticket and local task creation boundary"
  3375. codeSeeds:
  3376. - symbol: "OffPeakTaskService"
  3377. file: "packages/services/src/session/offPeakTaskService.ts"
  3378. - symbol: "useOffPeakTaskStore"
  3379. file: "packages/ui/src/store/offPeakTaskStore.ts"
  3380. invariants:
  3381. - "Provider start only waits for readiness; off-peak credentials explicitly read the latest completed Registry snapshot."
  3382. - "Initialization, connection changes, completed Registry notifications and manual refresh share serialized eligibility checks; support and availability publish together only for the latest generation."
  3383. - id: "service.cli-device-mid"
  3384. kind: "service"
  3385. label: "ZCode CLI deviceMid ensure"
  3386. codeSeeds:
  3387. - symbol: "ensureCliDeviceMid"
  3388. file: "apps/zcode-cli/packages/adapters/src/device/cli-device-mid.ts"
  3389. - id: "service.anthropic-request-options"
  3390. kind: "service"
  3391. label: "Anthropic model request metadata options"
  3392. codeSeeds:
  3393. - symbol: "createAnthropicRequestMetadataUserId"
  3394. file: "apps/zcode-cli/packages/adapters/src/model/anthropic-request-metadata.ts"
  3395. - symbol: "createGenerateTextOptions"
  3396. file: "apps/zcode-cli/packages/adapters/src/model/runner-options.ts"
  3397. - symbol: "createStreamTextOptions"
  3398. file: "apps/zcode-cli/packages/adapters/src/model/runner-options.ts"
  3399. - id: "service.model-request-session-type-attribution"
  3400. kind: "service"
  3401. label: "Runtime model request session type attribution"
  3402. codeSeeds:
  3403. - symbol: "resolveModelRequestSessionTypeFromTaskType"
  3404. file: "apps/zcode-cli/packages/core/src/runtime/methods/model-request-session-type.ts"
  3405. - symbol: "resolveModelRequestSessionType"
  3406. file: "apps/zcode-cli/packages/adapters/src/model/runner-status.ts"
  3407. - symbol: "createModelRequestAttributionHeaders"
  3408. file: "apps/zcode-cli/packages/adapters/src/model/runner-status.ts"
  3409. - id: "service.anthropic-reasoning-history-projection"
  3410. kind: "service"
  3411. label: "Anthropic request-local reasoning history projection"
  3412. codeSeeds:
  3413. - symbol: "AiSdkModelAdapter"
  3414. file: "apps/zcode-cli/packages/adapters/src/model/runner.ts"
  3415. - symbol: "normalizeReasoningHistory"
  3416. file: "apps/zcode-cli/packages/adapters/src/model/reasoning-history-normalization.ts"
  3417. - symbol: "repairReasoningHistoryAfterSignatureRejection"
  3418. file: "apps/zcode-cli/packages/adapters/src/model/reasoning-history-normalization.ts"
  3419. - symbol: "runGenerateText"
  3420. file: "apps/zcode-cli/packages/adapters/src/model/runner-generate.ts"
  3421. - symbol: "runStreamText"
  3422. file: "apps/zcode-cli/packages/adapters/src/model/runner-stream.ts"
  3423. - id: "service.model-reasoning-request-projection"
  3424. kind: "service"
  3425. label: "Model request-local reasoning content projection"
  3426. codeSeeds:
  3427. - symbol: "toAiSdkMessages"
  3428. file: "apps/zcode-cli/packages/adapters/src/model/transform.ts"
  3429. - symbol: "withOpenAiCompatibleReasoningContent"
  3430. file: "apps/zcode-cli/packages/adapters/src/model/reasoning-content-compat.ts"
  3431. - symbol: "withDeepSeekV4AnthropicThinkingReplay"
  3432. file: "apps/zcode-cli/packages/adapters/src/model/anthropic-reasoning-metadata.ts"
  3433. - id: "service.usage-stats-bridge"
  3434. kind: "service"
  3435. label: "Host App Usage protocol bridge"
  3436. codeSeeds:
  3437. - symbol: "createUsageStatsService"
  3438. file: "packages/services/src/usage-stats/usageStatsService.ts"
  3439. - symbol: "getAppUsageStats"
  3440. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  3441. - id: "service.plan-entitlements"
  3442. kind: "service"
  3443. label: "Plan identity, subscription, quota, and monitor services"
  3444. codeSeeds:
  3445. - symbol: "BigModelUsageQuotaProvider"
  3446. file: "packages/services/src/usage-stats/providers/bigmodelUsageQuotaProvider.ts"
  3447. - symbol: "createCodingPlanSubscriptionService"
  3448. file: "packages/services/src/coding-plan-subscription/codingPlanSubscriptionService.ts"
  3449. - id: "service.office-document-platform"
  3450. kind: "service"
  3451. label: "Planned workspace-scoped Office parsing, conversion, and save service"
  3452. - id: "service.document-skills"
  3453. kind: "service"
  3454. label: "Official DOCX, PDF, PPTX, and XLSX document skills with judge subagent"
  3455. docs:
  3456. - "docs/document-skills-plugin.md"
  3457. codeSeeds:
  3458. - symbol: "OFFICIAL_PLUGIN_DEFINITIONS"
  3459. file: "apps/zcode-cli/packages/bootstrap/src/app/official-plugin-definitions.ts"
  3460. - symbol: "collectFilesystemPluginFiles"
  3461. file: "apps/zcode-cli/packages/bootstrap/src/app/bundled-plugins.ts"
  3462. - symbol: "collectSeaOfficialPluginAssets"
  3463. file: "apps/zcode-cli/packages/cli/scripts/sea-official-plugin-assets.mjs"
  3464. - symbol: "enumeratePluginComponents"
  3465. file: "apps/zcode-cli/packages/adapters/src/plugins/plugin-components.ts"
  3466. - symbol: "loadPluginAgentProfiles"
  3467. file: "apps/zcode-cli/packages/bootstrap/src/subagents.ts"
  3468. invariants:
  3469. - "Every official packaging and seed whitelist preserves agents/, and document-skills completeness requires agents/judge.md before a cache is reusable."
  3470. - id: "service.pptx-reference-resolver"
  3471. kind: "service"
  3472. label: "Official marketplace-aligned PPTX production skill"
  3473. codeSeeds:
  3474. - file: "apps/zcode-cli/packages/document-skills-plugin/agents/judge.md"
  3475. - id: "service.cua-platform"
  3476. kind: "service"
  3477. label: "Desktop-local Computer Use Helper, trust broker, observation, and native input"
  3478. aliases:
  3479. - "Helper lifecycle"
  3480. - "CUA Helper health check"
  3481. - "CUA Helper recovery"
  3482. docs:
  3483. - "docs/cua-permission-broker/2026-09-02-helper-lifecycle-agent-runtime-isolation-spec.md"
  3484. - "docs/testing/cua-e2e-case-catalog.md"
  3485. codeSeeds:
  3486. - symbol: "createDefaultCuaProductHelper"
  3487. file: "packages/services/src/node.ts"
  3488. - symbol: "buildCuaProductHelperAgentEnv"
  3489. file: "packages/services/src/node.ts"
  3490. - symbol: "ICuaPermissionService"
  3491. file: "packages/services/src/cua-permission-broker/cuaPermissionService.ts"
  3492. - symbol: "WindowsCuaHelperHost"
  3493. file: "packages/services/src/cua-permission-broker/windowsCuaDevHelperHost.ts"
  3494. - symbol: "resolveWindowsCuaRuntime"
  3495. file: "packages/services/src/cua-permission-broker/windowsCuaDevRuntime.ts"
  3496. invariants:
  3497. - "Default services assembly never schedules periodic Helper health probes or automatic recovery; health checks and recovery run only at explicit CUA demand boundaries."
  3498. - "Helper readiness, health failure, and recovery never dispose or restart Agent runtime."
  3499. - id: "state.windows-cua-operation-indicator"
  3500. kind: "state-owner"
  3501. label: "Windows CUA tool-triggered operation indicator projection"
  3502. docs:
  3503. - "docs/superpowers/specs/2026-08-04-windows-cua-operation-indicator-design.md"
  3504. - "docs/testing/cua-e2e-case-catalog.md"
  3505. codeSeeds:
  3506. - symbol: "createWindowsCuaOperationIndicator"
  3507. file: "packages/desktop/src/main/windowsCuaOperationIndicator.ts"
  3508. - symbol: "createCuaOperationTurnTracker"
  3509. file: "packages/services/src/zcode-agent/cuaOperationTurnTracker.ts"
  3510. - id: "service.cua-helper-build-release"
  3511. kind: "service"
  3512. label: "Canonical ZCode Computer Use Helper build and release"
  3513. aliases:
  3514. - "cua-helper-build"
  3515. - "CUA Helper packaging"
  3516. docs:
  3517. - "docs/superpowers/specs/2026-08-19-cua-producer-0.5.7-integration.md"
  3518. - "docs/desktop/macos-dmg-signing-notarization.md"
  3519. codeSeeds:
  3520. - file: "scripts/build-cua-helper-app.mjs"
  3521. - file: "scripts/package-cua-helper-release.mjs"
  3522. - file: "packages/desktop/electron-builder.config.js"
  3523. - file: "packages/desktop/src/main/desktopCuaHelperInstaller.ts"
  3524. - id: "state.cua-frame-pixel-authority"
  3525. kind: "state-owner"
  3526. label: "CUA immutable raster, WindowServer provenance, and native pixel dispatch authority"
  3527. docs:
  3528. - "docs/superpowers/specs/2026-08-14-cua-final-raster-integrity-contract.md"
  3529. - "docs/cua/2026-08-18-frame-pixel-zoom-regression.md"
  3530. codeSeeds:
  3531. - file: "packages/zcode-cua/package.json"
  3532. - file: "apps/zcode-cli/packages/core/src/mcp/index.ts"
  3533. invariants:
  3534. - "Official CUA raster bytes and adjacent image_ref reach the model unchanged."
  3535. - "Coordinate strategy=event uses WindowServer provenance and never requires AX hit-test."
  3536. - "Window, full-display, and nested Zoom pixels share one final native stale/occlusion gate."
  3537. - id: "service.cua-plugin-dev-runtime-assets"
  3538. kind: "service"
  3539. label: "CUA SDK/skill Dev build, validation, and filesystem seed assets"
  3540. docs:
  3541. - "docs/cua-permission-broker/cua-dev-mcp-runtime-assets.md"
  3542. codeSeeds:
  3543. - file: "scripts/build-desktop-agent-cli.mjs"
  3544. - file: "apps/zcode-cli/packages/zcode-cua-plugin/scripts/computer-use-client.mjs"
  3545. - symbol: "resolveOfficialPluginRoots"
  3546. file: "apps/zcode-cli/packages/bootstrap/src/app/bundled-plugins.ts"
  3547. - id: "service.cua-node-repl-bridge"
  3548. kind: "service"
  3549. label: "Shared node_repl Computer Use bridge"
  3550. docs:
  3551. - "docs/cua/2026-08-24-cua-node-repl-sdk-migration-spec.md"
  3552. codeSeeds:
  3553. - symbol: "createNodeReplMcpRuntime"
  3554. file: "apps/zcode-cli/packages/node-repl-host/src/server.ts"
  3555. - symbol: "createComputerUseBridgeGlobals"
  3556. file: "apps/zcode-cli/packages/node-repl-host/src/cua-bridge.ts"
  3557. - symbol: "createNodeReplCuaBroker"
  3558. file: "apps/zcode-cli/packages/node-repl-host/src/cua-broker.ts"
  3559. invariants:
  3560. - "Only node_repl js/js_add_node_module_dir/js_reset are model-visible; CUA is SDK-only."
  3561. - "Subagent requests are rejected and remote callers attach to an existing shared host."
  3562. - id: "state.cua-shared-host-runtime"
  3563. kind: "state-owner"
  3564. label: "Shared-host CUA runtime session, frame, and safety state"
  3565. docs:
  3566. - "docs/cua/2026-08-24-cua-node-repl-sdk-migration-spec.md"
  3567. codeSeeds:
  3568. - symbol: "createComputerUseRuntime"
  3569. file: "packages/zcode-cua/src/tools/computer-use-runtime.ts"
  3570. - symbol: "setupComputerUseRuntime"
  3571. file: "apps/zcode-cli/packages/zcode-cua-plugin/scripts/computer-use-client.mjs"
  3572. invariants:
  3573. - "Session keys use workspaceKey + remoteSessionId + sessionId."
  3574. - "AccessibilitySession, frame freshness, kill switch, input holds, and possibly-sent remain runtime-owned."
  3575. - "Runtime state never enters relay/main, conversation snapshots, or replay queues."
  3576. - id: "service.cua-tool-contract-projection"
  3577. kind: "service"
  3578. status: "removed"
  3579. label: "[Removed] CUA model-facing MCP tool projection and user-title projection"
  3580. docs:
  3581. - "docs/cua-get-app-state-user-title.md"
  3582. codeSeeds:
  3583. - symbol: "registerMcpTools"
  3584. file: "apps/zcode-cli/packages/core/src/mcp/index.ts"
  3585. - symbol: "CuaToolCallBlock"
  3586. file: "packages/ui/src/ToolCallBlocks/renderers/cua.tsx"
  3587. - id: "service.shared-host-attachment"
  3588. kind: "service"
  3589. label: "Web remote shared-host attachment"
  3590. codeSeeds:
  3591. - symbol: "createWebRemoteControlSharedHostAttachments"
  3592. file: "packages/desktop/src/main/webRemoteControlSharedHostAttachments.ts"
  3593. - id: "service.desktop-web-remote-control-authorization"
  3594. kind: "service"
  3595. label: "Desktop Web Remote Control start dispatch boundary"
  3596. codeSeeds:
  3597. - symbol: "registerWebRemoteControlIpcHandlers"
  3598. file: "packages/desktop/src/main/desktopWebRemoteControlIpc.ts"
  3599. - symbol: "authorizeStart"
  3600. file: "packages/desktop/src/main/webRemoteControlManager.ts"
  3601. invariants:
  3602. - "Start and reset-pairing do not add Desktop native confirmation; QR refresh keeps its renderer confirmation."
  3603. - "The internal one-time ticket binds window and workspace targets but is not proof of user authorization and is not an XSS mitigation."
  3604. - "Renderer-reachable IPC dependencies expose only target-bound start/reset methods."
  3605. - id: "service.desktop-app-shutdown-policy"
  3606. kind: "service"
  3607. label: "Desktop app shutdown policy"
  3608. codeSeeds:
  3609. - symbol: "resolveAppShutdownPolicy"
  3610. file: "packages/desktop/src/main/appShutdownPolicy.ts"
  3611. - symbol: "prepareAppQuit"
  3612. file: "packages/desktop/src/main/index.ts"
  3613. - id: "service.data-directory-setting"
  3614. kind: "service"
  3615. label: "Data directory validation, copy, and bootstrap pointer service"
  3616. codeSeeds:
  3617. - symbol: "createSettingService"
  3618. file: "packages/services/src/setting/settingService.ts"
  3619. - symbol: "getZCodeDataRootDir"
  3620. file: "packages/services/src/paths.ts"
  3621. - id: "service.model-io-runtime-preference-sync"
  3622. kind: "service"
  3623. label: "App-to-CLI ModelIO retention preference sync"
  3624. codeSeeds:
  3625. - symbol: "syncAppRuntimePreferences"
  3626. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  3627. - symbol: "updateModelIoPreferences"
  3628. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/model-io-preferences.ts"
  3629. - id: "service.desktop-browser-screenshot-activity"
  3630. kind: "service"
  3631. label: "Desktop owner-renderer and target-guest bounded screenshot activity lease"
  3632. codeSeeds:
  3633. - symbol: "DesktopBrowserScreenshotActivityController"
  3634. file: "packages/desktop/src/main/browserView/browserScreenshotActivityController.ts"
  3635. - id: "service.desktop-chromium-network-policy"
  3636. kind: "service"
  3637. label: "Desktop main Chromium Session proxy and certificate policy"
  3638. docs:
  3639. - "apps/zcode-cli/docs/design/v2/model/http-proxy.md"
  3640. codeSeeds:
  3641. - symbol: "applyDesktopChromiumNetworkPolicies"
  3642. file: "packages/desktop/src/main/desktopNetworkPolicy.ts"
  3643. - symbol: "applyDesktopSessionNetworkPolicy"
  3644. file: "packages/desktop/src/main/desktopNetworkPolicy.ts"
  3645. - id: "service.host-api-network-policy"
  3646. kind: "service"
  3647. label: "Window Host lifecycle-scoped app-managed API network transport"
  3648. docs:
  3649. - "docs/superpowers/specs/2026-08-25-host-api-proxy-design.md"
  3650. codeSeeds:
  3651. - symbol: "NodeApiClient"
  3652. file: "packages/services/src/providers/api/nodeApiClient.ts"
  3653. - symbol: "createLocalServices"
  3654. file: "packages/services/src/node.ts"
  3655. - symbol: "createRemoteWorkspaceServiceCollection"
  3656. file: "packages/desktop/src/host/remoteWorkspaceServiceCollection.ts"
  3657. - id: "service.desktop-browser-tab-residency"
  3658. kind: "service"
  3659. label: "Per-BrowserWindow logical Browser tab limit scheduler"
  3660. docs:
  3661. - "docs/browser-use/2026-07-31-browser-tab-residency-budget-spec.md"
  3662. codeSeeds:
  3663. - symbol: "BrowserGuestManager"
  3664. file: "packages/desktop/src/main/browserView/browserGuestManager.ts"
  3665. - id: "service.workspace-identity-builder"
  3666. kind: "service"
  3667. label: "Remote workspace identity builder"
  3668. codeSeeds:
  3669. - symbol: "buildRemoteWorkspaceIdentity"
  3670. file: "packages/ui/src/lib/remoteWorkspaceHistory.ts"
  3671. - id: "service.native-search-release-plan"
  3672. kind: "service"
  3673. label: "Native search platform release and ABI contract"
  3674. codeSeeds:
  3675. - symbol: "resolveNativeSearchPrebuiltPlan"
  3676. file: "scripts/native-search-tools-config.mjs"
  3677. - symbol: "verifyBuiltNativeSearchTools"
  3678. file: "scripts/native-search-tools-verify.mjs"
  3679. - id: "service.prompt-attachment-transfer"
  3680. kind: "service"
  3681. label: "Prompt attachment transfer service"
  3682. codeSeeds:
  3683. - symbol: "IPromptAttachmentTransferService"
  3684. file: "packages/services/src/prompt-attachment-transfer/promptAttachmentTransfer.ts"
  3685. - symbol: "createRemotePromptAttachmentTransferService"
  3686. file: "packages/desktop/src/host/promptAttachmentTransferService.ts"
  3687. - id: "persistence.automation-record"
  3688. kind: "persistence"
  3689. label: "Persisted automation record"
  3690. codeSeeds:
  3691. - symbol: "AutomationService"
  3692. file: "packages/services/src/session/automationService.ts"
  3693. - id: "persistence.usage-observability-db"
  3694. kind: "persistence"
  3695. label: "ZCode CLI model, turn, and tool usage facts"
  3696. codeSeeds:
  3697. - symbol: "queryAppUsage"
  3698. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/repositories/usage.ts"
  3699. - symbol: "buildAppUsageSnapshot"
  3700. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/usage-stats-builder.ts"
  3701. - id: "persistence.subagent-markdown"
  3702. kind: "persistence"
  3703. label: "User agent Markdown, built-in and plugin agent overrides"
  3704. codeSeeds:
  3705. - symbol: "ISubagentsService"
  3706. file: "packages/services/src/subagents/subagents.ts"
  3707. - id: "persistence.session-model-timeline"
  3708. kind: "persistence"
  3709. label: "Session model change timeline parts"
  3710. codeSeeds:
  3711. - symbol: "persistPendingModelChangeTimeline"
  3712. file: "apps/zcode-cli/packages/core/src/runtime/methods/timeline-persistence.ts"
  3713. - symbol: "synthesizeEventsFromMessages"
  3714. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/transcript-hydration.ts"
  3715. - id: "persistence.session-media-artifacts"
  3716. kind: "persistence"
  3717. label: "Provider-neutral session media artifacts"
  3718. docs:
  3719. - "docs/plans/2026-08-17-video-input-support-plan.md"
  3720. - "apps/zcode-cli/docs/design/v2/message-attachments.md"
  3721. - "apps/zcode-cli/docs/design/v2/session-persistence.md"
  3722. codeSeeds:
  3723. - symbol: "persistToolResultMediaAttachments"
  3724. file: "apps/zcode-cli/packages/core/src/runtime/helpers/tool-result-media-persistence.ts"
  3725. - symbol: "hydrateMessageHistoryFromSession"
  3726. file: "apps/zcode-cli/packages/core/src/agent/session-history-hydrator.ts"
  3727. - symbol: "NodeToolArtifactStore"
  3728. file: "apps/zcode-cli/packages/adapters/src/storage/index.ts"
  3729. - id: "persistence.assistant-message-model-provenance"
  3730. kind: "persistence"
  3731. label: "Persisted assistant provider and model provenance"
  3732. codeSeeds:
  3733. - symbol: "persistAssistantMessage"
  3734. file: "apps/zcode-cli/packages/core/src/runtime/methods/message-persistence.ts"
  3735. - symbol: "hydrateMessageHistoryFromSession"
  3736. file: "apps/zcode-cli/packages/core/src/agent/session-history-hydrator.ts"
  3737. - id: "persistence.task-index"
  3738. kind: "persistence"
  3739. label: "Task sqlite index"
  3740. codeSeeds:
  3741. - symbol: "TaskIndexRepo"
  3742. file: "packages/services/src/session/taskIndexRepo.ts"
  3743. - id: "persistence.app-settings"
  3744. kind: "persistence"
  3745. label: "Application settings file"
  3746. codeSeeds:
  3747. - symbol: "appSettingsSchema"
  3748. file: "packages/shared/src/validationAppSettings.ts"
  3749. - symbol: "createSettingService"
  3750. file: "packages/services/src/setting/settingService.ts"
  3751. - id: "persistence.model-io-jsonl"
  3752. kind: "persistence"
  3753. label: "Per-session ModelIO JSONL diagnostics"
  3754. codeSeeds:
  3755. - symbol: "writeModelIODebugRecord"
  3756. file: "apps/zcode-cli/packages/adapters/src/model/runner-debug.ts"
  3757. - symbol: "readModelTrajectory"
  3758. file: "packages/services/src/zcode-agent/modelTrajectory.ts"
  3759. - id: "persistence.project-memory-files"
  3760. kind: "persistence"
  3761. label: "Local Project Memory Markdown files"
  3762. codeSeeds:
  3763. - symbol: "resolveProjectMemoryRoot"
  3764. file: "apps/zcode-cli/packages/core/src/memory/project-root.ts"
  3765. - symbol: "createMemoryService"
  3766. file: "packages/services/src/memory/memoryService.ts"
  3767. - id: "persistence.oauth-login-attribution"
  3768. kind: "persistence"
  3769. label: "OAuth login attribution credential"
  3770. codeSeeds:
  3771. - symbol: "OAuthCredentialRepo"
  3772. file: "packages/services/src/oauth/repo/oauthCredentialRepo.ts"
  3773. - id: "persistence.telemetry-device-mid"
  3774. kind: "persistence"
  3775. label: "Host telemetry state deviceMid"
  3776. codeSeeds:
  3777. - symbol: "ensureDesktopDeviceMidSync"
  3778. file: "packages/desktop/src/main/desktopDeviceMid.ts"
  3779. - symbol: "createTelemetryCore"
  3780. file: "packages/services/src/telemetry/telemetryCore.ts"
  3781. - symbol: "ensureCliDeviceMid"
  3782. file: "apps/zcode-cli/packages/adapters/src/device/cli-device-mid.ts"
  3783. - id: "persistence.native-search-shared-deps"
  3784. kind: "persistence"
  3785. label: "Immutable native search prebuilt archives"
  3786. docs:
  3787. - "docs/runtime-tools/embedded-search-native-build.md"
  3788. - id: "persistence.browser-tab-recovery-store"
  3789. kind: "persistence"
  3790. label: "Legacy disabled Browser tab recovery catalog"
  3791. aliases:
  3792. - "browser-tab-recovery.json"
  3793. - "retired browser tab pageState repository"
  3794. docs:
  3795. - "docs/browser-use/2026-07-31-browser-tab-residency-budget-spec.md"
  3796. - id: "boundary.desktop-continuous"
  3797. kind: "delivery-boundary"
  3798. label: "Desktop continuous delivery"
  3799. - id: "boundary.web-remote-replayable"
  3800. kind: "delivery-boundary"
  3801. label: "Web remote replayable delivery"
  3802. - id: "boundary.workspace-key"
  3803. kind: "delivery-boundary"
  3804. label: "workspaceIdentity fallback isolation key"
  3805. - id: "capability.composer-trigger-routing"
  3806. kind: "capability"
  3807. label: "Composer primary and compatibility trigger routing"
  3808. aliases:
  3809. - "composer prefix routing"
  3810. - "mention panel routing"
  3811. - "@ and slash picker"
  3812. - "输入框候选分组"
  3813. - "输入框触发器"
  3814. docs:
  3815. - "docs/ui/mention-panel-layout.md"
  3816. codeSeeds:
  3817. - symbol: "extractActivePromptInputTrigger"
  3818. file: "packages/ui/src/lib/promptInputTriggers.ts"
  3819. - symbol: "ChatPromptActionMenu"
  3820. file: "packages/ui/src/prompt-editor/ChatPromptActionMenu.tsx"
  3821. - id: "capability.plan-slash-shortcut"
  3822. kind: "capability"
  3823. label: "App Composer /plan mode shortcut"
  3824. aliases:
  3825. - "/plan"
  3826. - "Plan mode composer shortcut"
  3827. - "Composer Plan 快捷命令"
  3828. docs:
  3829. - "docs/plan-slash-command.md"
  3830. - "docs/conversation-session-case-catalog.md"
  3831. codeSeeds:
  3832. - symbol: "parseV4VisibleSlashCommand"
  3833. file: "packages/ui/src/v4/slashCommands.ts"
  3834. - symbol: "SessionPane"
  3835. file: "packages/ui/src/v4/SessionPane.tsx"
  3836. - symbol: "listProtocolSlashCommands"
  3837. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/slash-commands.ts"
  3838. - id: "surface.composer-at-context-picker"
  3839. kind: "ui-surface"
  3840. label: "Composer @ context picker (Plugins, files, sessions, Whiteboards)"
  3841. aliases:
  3842. - "@ context picker"
  3843. - "@ 面板"
  3844. codeSeeds:
  3845. - symbol: "MentionPlugin"
  3846. file: "packages/ui/src/mentions/MentionPlugin.tsx"
  3847. - symbol: "useFileMentionProvider"
  3848. file: "packages/ui/src/mentions/providers/fileMentionProvider.ts"
  3849. - symbol: "useSessionsMentionProvider"
  3850. file: "packages/ui/src/mentions/providers/sessionsMentionProvider.ts"
  3851. - symbol: "useWhiteboardMentionProvider"
  3852. file: "packages/ui/src/mentions/providers/whiteboardMentionProvider.ts"
  3853. - id: "service.composer-host-file-search"
  3854. kind: "service"
  3855. label: "Host-owned bounded Composer file search"
  3856. docs:
  3857. - "docs/superpowers/specs/2026-08-26-local-file-mention-stability.md"
  3858. codeSeeds:
  3859. - symbol: "createFileService"
  3860. file: "packages/services/src/file/fileService.ts"
  3861. - id: "surface.composer-slash-capability-picker"
  3862. kind: "ui-surface"
  3863. label: "Composer slash picker (commands, Skills, Subagents)"
  3864. aliases:
  3865. - "slash capability picker"
  3866. - "/ 面板"
  3867. codeSeeds:
  3868. - symbol: "SlashCommandPlugin"
  3869. file: "packages/ui/src/SlashCommandPlugin.tsx"
  3870. - symbol: "useSlashCommandMentionPanelSections"
  3871. file: "packages/ui/src/slashCommandPanelSections.tsx"
  3872. - symbol: "buildSlashApplyMentionPayload"
  3873. file: "packages/ui/src/lib/slashApplyMentionPayload.ts"
  3874. - id: "surface.conversation-selection-side-slash"
  3875. kind: "ui-surface"
  3876. label: "Composer /side and /btw shortcuts with optional text input"
  3877. aliases:
  3878. - "side slash commands"
  3879. - "辅助对话斜杠命令"
  3880. docs:
  3881. - "docs/ui/conversation-selection-side-chat.md"
  3882. codeSeeds:
  3883. - symbol: "appSlashCommands"
  3884. file: "packages/ui/src/v4/SessionPane.tsx"
  3885. - symbol: "parseSelectionSideSlashCommand"
  3886. file: "packages/ui/src/v4/slashCommands.ts"
  3887. - symbol: "SlashCommandPlugin"
  3888. file: "packages/ui/src/SlashCommandPlugin.tsx"
  3889. - id: "capability.session-skill-catalog"
  3890. kind: "capability"
  3891. label: "Composer workspace/session Skill catalog lifecycle"
  3892. aliases:
  3893. - "session skill catalog"
  3894. - "Skill 候选冻结"
  3895. - "新建对话刷新 Skill"
  3896. docs:
  3897. - "docs/ui/conversation-skill-catalog-lifecycle.md"
  3898. - "docs/ui/mention-panel-layout.md"
  3899. codeSeeds:
  3900. - symbol: "useSkills"
  3901. file: "packages/ui/src/hooks/useSkills.ts"
  3902. - symbol: "getSkillReferenceCatalog"
  3903. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/skill-reference-catalog.ts"
  3904. - id: "capability.plugin-source-acquisition"
  3905. kind: "capability"
  3906. label: "Plugin marketplace and install source acquisition"
  3907. aliases:
  3908. - "plugin source materialization"
  3909. - "GitHub Archive plugin install"
  3910. - "plugin install without git"
  3911. - "插件来源物化"
  3912. - "无 Git 安装插件"
  3913. docs:
  3914. - "docs/plugin-github-archive-source.md"
  3915. - "docs/claude-code-marketplace-plugin-compat.md"
  3916. - "docs/plugin-management-lifecycle-case-catalog.md"
  3917. codeSeeds:
  3918. - symbol: "loadMarketplaceFromSource"
  3919. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3920. - symbol: "resolvePluginSourceRoot"
  3921. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3922. - symbol: "resolveZipPluginSource"
  3923. file: "apps/zcode-cli/packages/adapters/src/plugins/zip-source.ts"
  3924. - id: "service.plugin-source-materializer"
  3925. kind: "service"
  3926. label: "GitHub Archive or system Git plugin source materializer"
  3927. codeSeeds:
  3928. - symbol: "resolvePluginSourceRoot"
  3929. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3930. - symbol: "loadMarketplaceFromSource"
  3931. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3932. - symbol: "execGitCommand"
  3933. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3934. - id: "persistence.plugin-marketplace-installed-cache"
  3935. kind: "persistence"
  3936. label: "Known marketplace snapshots and installed plugin cache"
  3937. codeSeeds:
  3938. - symbol: "loadKnownMarketplacesSync"
  3939. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3940. - symbol: "copyMarketplaceDirectoryPlugins"
  3941. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3942. - symbol: "cacheMarketplacePlugin"
  3943. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  3944. - id: "boundary.plugin-agent-host"
  3945. kind: "delivery-boundary"
  3946. label: "Plugin operations execute in the authoritative local or remote Agent Host"
  3947. codeSeeds:
  3948. - symbol: "updatePluginMarketplace"
  3949. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/plugins.ts"
  3950. - symbol: "PluginSyncService"
  3951. file: "packages/services/src/plugin-sync/pluginSyncService.ts"
  3952. - id: "capability.workspace-project-plugin-scope"
  3953. kind: "capability"
  3954. label: "User and Workspace Plugin scope with open ZCode config"
  3955. aliases:
  3956. - "Workspace-level Plugin"
  3957. - "project Plugin scope"
  3958. - "workspace plugin config"
  3959. - "项目级插件"
  3960. - "工作区插件"
  3961. docs:
  3962. - "docs/plugins/workspace-level-plugin-architecture.md"
  3963. - "docs/plugins/workspace-level-plugin-proposal-comparison.md"
  3964. - "docs/plugin-management-lifecycle-case-catalog.md"
  3965. codeSeeds:
  3966. - symbol: "createConfig"
  3967. file: "apps/zcode-cli/packages/adapters/src/config/config-factory.ts"
  3968. - symbol: "mergeConfigs"
  3969. file: "apps/zcode-cli/packages/adapters/src/config/config-merger.ts"
  3970. - symbol: "resolveStartupPlugins"
  3971. file: "apps/zcode-cli/packages/bootstrap/src/app/startup-marks.ts"
  3972. - id: "surface.workspace-plugin-scope-controls"
  3973. kind: "ui-surface"
  3974. label: "Plugin User and Workspace configuration views"
  3975. aliases:
  3976. - "Plugin scope selector"
  3977. - "project enable"
  3978. - "插件作用域"
  3979. codeSeeds:
  3980. - symbol: "PluginsSection"
  3981. file: "packages/ui/src/settings/PluginsSection.tsx"
  3982. - symbol: "PluginScopeMenu"
  3983. file: "packages/ui/src/settings/PluginScopeMenu.tsx"
  3984. - symbol: "InstalledPluginDetailDialog"
  3985. file: "packages/ui/src/settings/InstalledPluginManagement.tsx"
  3986. - symbol: "requestPluginStoreOpen"
  3987. file: "packages/ui/src/lib/pluginStoreNavigation.ts"
  3988. - symbol: "setPendingSettingsPluginIntent"
  3989. file: "packages/ui/src/lib/settingsNavigation.ts"
  3990. - symbol: "PluginStorePage"
  3991. file: "packages/ui/src/settings/PluginStorePage.tsx"
  3992. - id: "state.workspace-plugin-effective-config"
  3993. kind: "state-owner"
  3994. label: "User and Workspace effective Plugin configuration"
  3995. aliases:
  3996. - "effective enabledPlugins"
  3997. - "Plugin config precedence"
  3998. - "插件有效配置"
  3999. codeSeeds:
  4000. - symbol: "createConfig"
  4001. file: "apps/zcode-cli/packages/adapters/src/config/config-factory.ts"
  4002. - symbol: "mergeConfigs"
  4003. file: "apps/zcode-cli/packages/adapters/src/config/config-merger.ts"
  4004. - symbol: "resolveEnabled"
  4005. file: "apps/zcode-cli/packages/adapters/src/plugins/index.ts"
  4006. - id: "persistence.workspace-plugin-project-config"
  4007. kind: "persistence"
  4008. label: "Tracked workspace .zcode/config.json Plugin declaration and sensitive options"
  4009. aliases:
  4010. - ".zcode/config.json plugins"
  4011. - "project enabledPlugins"
  4012. codeSeeds:
  4013. - symbol: "loadProjectConfigs"
  4014. file: "apps/zcode-cli/packages/adapters/src/config/project-config.adapter.ts"
  4015. - symbol: "resolvePluginConfigPathForScope"
  4016. file: "packages/services/src/settings-sync/settingsSyncService.ts"
  4017. - id: "boundary.workspace-plugin-trust"
  4018. kind: "delivery-boundary"
  4019. label: "Workspace Plugin trust and MCP approval gates intentionally disabled"
  4020. aliases:
  4021. - "Workspace trust"
  4022. - "project Plugin trust"
  4023. - "工作区信任"
  4024. - "no Workspace trust"
  4025. - "no Plugin MCP approval"
  4026. docs:
  4027. - "docs/plugins/workspace-level-plugin-architecture.md"
  4028. - "docs/security/deep-link-project-trust-boundary.md"
  4029. - id: "boundary.workspace-plugin-sensitive-config"
  4030. kind: "delivery-boundary"
  4031. label: "Plaintext Workspace Plugin credentials and secrets with output redaction"
  4032. aliases:
  4033. - "project Plugin secret"
  4034. - "sensitive plugin options"
  4035. - "项目插件凭据"
  4036. docs:
  4037. - "docs/plugins/workspace-level-plugin-architecture.md"
  4038. codeSeeds:
  4039. - symbol: "configureZCodePlugin"
  4040. file: "apps/zcode-cli/packages/bootstrap/src/plugins.ts"
  4041. - symbol: "resolvePluginMcpServers"
  4042. file: "apps/zcode-cli/packages/adapters/src/plugins/mcp.ts"
  4043. - symbol: "PluginConfigControls"
  4044. file: "packages/ui/src/settings/PluginConfigControls.tsx"
  4045. - id: "evidence.workspace-project-plugin-cases"
  4046. kind: "evidence"
  4047. label: "Workspace Plugin lifecycle cases and coverage"
  4048. docs:
  4049. - "docs/plugin-management-lifecycle-case-catalog.md"
  4050. - "docs/testing/plugin-management-lifecycle-e2e-coverage-matrix.md"
  4051. - id: "evidence.plugin-source-acquisition-tests"
  4052. kind: "evidence"
  4053. label: "No-Git GitHub Archive, refresh isolation and atomic cache tests"
  4054. docs:
  4055. - "docs/testing/plugin-management-lifecycle-e2e-coverage-matrix.md"
  4056. codeSeeds:
  4057. - file: "apps/zcode-cli/packages/adapters/tests/plugins.test.ts"
  4058. - file: "apps/zcode-cli/packages/bootstrap/tests/marketplace-import-e2e.test.ts"
  4059. - id: "capability.plugin-catalog-runtime-separation"
  4060. kind: "capability"
  4061. label: "Plugin Catalog and Runtime separation for builtin uninstall/detail"
  4062. aliases:
  4063. - "builtin plugin uninstall detail"
  4064. - "suppressed builtin catalog"
  4065. - "内置插件卸载后详情"
  4066. - "插件 Catalog Runtime 分离"
  4067. docs:
  4068. - "docs/specs/builtin-plugin-catalog-runtime-separation.md"
  4069. - "docs/plugin-management-lifecycle-case-catalog.md"
  4070. - "docs/adr/0001-store-listing-in-marketplace-catalog.md"
  4071. codeSeeds:
  4072. - symbol: "seedBundledOfficialPlugins"
  4073. file: "apps/zcode-cli/packages/bootstrap/src/app/bundled-plugins.ts"
  4074. - symbol: "writeOfficialMarketplace"
  4075. file: "apps/zcode-cli/packages/bootstrap/src/app/bundled-plugins.ts"
  4076. - symbol: "uninstallZCodeMarketplacePlugin"
  4077. file: "apps/zcode-cli/packages/bootstrap/src/plugins.ts"
  4078. - symbol: "describeMarketplacePlugin"
  4079. file: "apps/zcode-cli/packages/adapters/src/plugins/marketplace.ts"
  4080. - symbol: "discoverNodePluginsSync"
  4081. file: "apps/zcode-cli/packages/adapters/src/plugins/index.ts"
  4082. - symbol: "buildStoreItems"
  4083. file: "packages/ui/src/settings/pluginStoreListing.ts"
  4084. - symbol: "PluginStoreDetailView"
  4085. file: "packages/ui/src/settings/PluginStoreDetailView.tsx"
  4086. - id: "state.plugin-runtime-suppression"
  4087. kind: "state-owner"
  4088. label: "User-owned suppressed builtin runtime filter"
  4089. docs:
  4090. - "docs/specs/builtin-plugin-catalog-runtime-separation.md"
  4091. codeSeeds:
  4092. - symbol: "suppressedBuiltins"
  4093. file: "apps/zcode-cli/packages/adapters/src/config/schema.ts"
  4094. - symbol: "addSuppressedBuiltinInFileConfig"
  4095. file: "apps/zcode-cli/packages/adapters/src/config/file-config.adapter.ts"
  4096. - symbol: "removeSuppressedBuiltinInFileConfig"
  4097. file: "apps/zcode-cli/packages/adapters/src/config/file-config.adapter.ts"
  4098. - id: "service.plugin-catalog-detail"
  4099. kind: "service"
  4100. label: "Read-only Marketplace plugin detail and component enumeration"
  4101. docs:
  4102. - "docs/specs/builtin-plugin-catalog-runtime-separation.md"
  4103. - "docs/plugin-marketplace-ui-ux.md"
  4104. codeSeeds:
  4105. - symbol: "describeZCodePlugin"
  4106. file: "apps/zcode-cli/packages/bootstrap/src/plugins.ts"
  4107. - symbol: "describePlugin"
  4108. file: "packages/ui/src/store/pluginManagementStore.ts"
  4109. - symbol: "PluginStoreDetailView"
  4110. file: "packages/ui/src/settings/PluginStoreDetailView.tsx"
  4111. - id: "evidence.plugin-catalog-runtime-tests"
  4112. kind: "evidence"
  4113. label: "Builtin uninstall/detail parity and Catalog/Runtime separation tests"
  4114. docs:
  4115. - "docs/plugin-management-lifecycle-case-catalog.md"
  4116. - "docs/testing/plugin-management-lifecycle-e2e-coverage-matrix.md"
  4117. codeSeeds:
  4118. - file: "apps/zcode-cli/packages/bootstrap/tests/plugins.test.ts"
  4119. - file: "apps/zcode-cli/packages/adapters/tests/plugins.test.ts"
  4120. - id: "capability.plugin-reference"
  4121. kind: "capability"
  4122. label: "Plugin conversation reference (@ Plugin capability hint)"
  4123. aliases:
  4124. - "plugin mention"
  4125. - "plugin reference"
  4126. - "@ plugin"
  4127. - "plugin_reference reminder"
  4128. - "插件引用"
  4129. - "引用插件"
  4130. docs:
  4131. - "docs/plugin-reference-mention.md"
  4132. - id: "surface.composer-mention-plugins"
  4133. kind: "ui-surface"
  4134. label: "Plugin group and chip inside the Composer @ context picker"
  4135. aliases:
  4136. - "plugins mention group"
  4137. - "plugin chip"
  4138. - "@ 面板 Plugins 分组"
  4139. codeSeeds:
  4140. - symbol: "usePluginsMentionProvider"
  4141. file: "packages/ui/src/mentions/providers/pluginsMentionProvider.ts"
  4142. - symbol: "MentionPlugin"
  4143. file: "packages/ui/src/mentions/MentionPlugin.tsx"
  4144. - symbol: "buildPluginMentionMarkdown"
  4145. file: "packages/ui/src/mentions/mentionMarkdown.ts"
  4146. - id: "surface.plugin-store-example-prompt-try"
  4147. kind: "ui-surface"
  4148. label: "Plugin Store Try now and example prompt entries"
  4149. aliases:
  4150. - "plugin store try"
  4151. - "try now"
  4152. - "example prompt try"
  4153. - "插件商店试用"
  4154. - "立即试用"
  4155. - "示例提示词胶囊"
  4156. codeSeeds:
  4157. - symbol: "PluginStoreDetailView"
  4158. file: "packages/ui/src/settings/PluginStoreDetailView.tsx"
  4159. - symbol: "handleUsePrompt"
  4160. file: "packages/ui/src/settings/PluginsSection.tsx"
  4161. - symbol: "buildPluginMentionMarkdown"
  4162. file: "packages/ui/src/mentions/mentionMarkdown.ts"
  4163. - id: "surface.new-task-suggested-prompts"
  4164. kind: "ui-surface"
  4165. label: "New Task draft suggested prompt prefill"
  4166. aliases:
  4167. - "draft suggested prompts"
  4168. - "recommended prompt pills"
  4169. - "New Task 推荐提示词"
  4170. - "草稿页推荐提示词"
  4171. docs:
  4172. - "docs/ui/conversation-draft-suggested-prompts.md"
  4173. codeSeeds:
  4174. - symbol: "getRecommendedPromptPool"
  4175. file: "packages/ui/src/v4/featureSuggestedPrompts.ts"
  4176. - symbol: "getRecommendedPromptsForPane"
  4177. file: "packages/ui/src/v4/featureSuggestedPromptRotation.ts"
  4178. - symbol: "ConversationDraftSuggestedPrompts"
  4179. file: "packages/ui/src/v4/ConversationDraftSuggestedPrompts.tsx"
  4180. - symbol: "ConversationDraftSuggestedPromptsContainer"
  4181. file: "packages/ui/src/v4/ConversationDraftSuggestedPromptsContainer.tsx"
  4182. - symbol: "buildDraftSuggestedPromptPrefill"
  4183. file: "packages/ui/src/v4/draftSuggestedPromptPrefill.ts"
  4184. - symbol: "mapClientScenesToDraftSuggestedPromptItems"
  4185. file: "packages/ui/src/v4/draftSuggestedPromptItems.ts"
  4186. - symbol: "SessionPane"
  4187. file: "packages/ui/src/v4/SessionPane.tsx"
  4188. - id: "service.client-scenes"
  4189. kind: "service"
  4190. label: "ZCode Client Scenes option source"
  4191. aliases:
  4192. - "clientScenesService"
  4193. - "draft-suggestion scene"
  4194. - "scheduled-task scene"
  4195. - "off-peak-task scene"
  4196. - "推荐提示词配置"
  4197. docs:
  4198. - "docs/zcode-client-scenes-api.md"
  4199. codeSeeds:
  4200. - symbol: "IClientScenesService"
  4201. file: "packages/services/src/client-scenes/clientScenes.ts"
  4202. - symbol: "createClientScenesService"
  4203. file: "packages/services/src/client-scenes/clientScenesService.ts"
  4204. - id: "shared-ui.automation-template-catalog"
  4205. kind: "shared-ui"
  4206. label: "Client Scenes automation template mapper and loader"
  4207. codeSeeds:
  4208. - symbol: "mapClientScenesToAutomationTemplates"
  4209. file: "packages/ui/src/settings/automationTemplateCatalog.ts"
  4210. - symbol: "useAutomationTemplates"
  4211. file: "packages/ui/src/settings/useAutomationTemplates.ts"
  4212. - id: "state.plugin-reference-session-catalog"
  4213. kind: "state-owner"
  4214. label: "Session-frozen plugin identity catalog"
  4215. aliases:
  4216. - "plugin reference catalog"
  4217. - "session plugin catalog"
  4218. - "冻结插件目录"
  4219. codeSeeds:
  4220. - symbol: "buildPluginReferenceCatalog"
  4221. file: "apps/zcode-cli/packages/core/src/plugin-reference/catalog.ts"
  4222. - symbol: "resolveStartupPlugins"
  4223. file: "apps/zcode-cli/packages/bootstrap/src/app/startup-marks.ts"
  4224. - id: "state.session-skill-catalog"
  4225. kind: "state-owner"
  4226. label: "Agent runtime-frozen Session Skill catalog"
  4227. aliases:
  4228. - "skillLoadOutcome"
  4229. - "Session Skill 快照"
  4230. codeSeeds:
  4231. - symbol: "getSkillCatalog"
  4232. file: "apps/zcode-cli/packages/core/src/runtime/methods/context.ts"
  4233. - symbol: "ensureContextInitialized"
  4234. file: "apps/zcode-cli/packages/core/src/runtime/methods/context.ts"
  4235. - id: "service.skill-reference-catalog"
  4236. kind: "service"
  4237. label: "skills/referenceCatalog protocol query (session vs workspace authority)"
  4238. codeSeeds:
  4239. - symbol: "getSkillReferenceCatalog"
  4240. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/skill-reference-catalog.ts"
  4241. - symbol: "getSkillReferenceCatalog"
  4242. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  4243. - id: "service.plugin-reference-catalog"
  4244. kind: "service"
  4245. label: "plugins/referenceCatalog protocol query (session vs workspace authority)"
  4246. codeSeeds:
  4247. - symbol: "getPluginReferenceCatalog"
  4248. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/plugins.ts"
  4249. - symbol: "getPluginReferenceCatalog"
  4250. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  4251. - id: "service.suggested-plugin-reference-resolution"
  4252. kind: "service"
  4253. label: "Trusted suggested-prompt Plugin refresh, install candidate resolution, and cancellation"
  4254. aliases:
  4255. - "plugins/resolveSuggestedReference"
  4256. - "推荐插件可信解析"
  4257. - "推荐提示词一键安装"
  4258. docs:
  4259. - "docs/ui/conversation-draft-suggested-prompts.md"
  4260. - "docs/plugin-management-lifecycle-case-catalog.md"
  4261. codeSeeds:
  4262. - symbol: "resolveSuggestedPluginReference"
  4263. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/plugin-reference-catalog.ts"
  4264. - symbol: "withPluginOperationSignal"
  4265. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/server.ts"
  4266. - symbol: "resolveSuggestedPluginReference"
  4267. file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  4268. - id: "service.plugin-reference-reminder"
  4269. kind: "service"
  4270. label: "Turn plugin_reference reminder injection (live capability intersection)"
  4271. codeSeeds:
  4272. - symbol: "buildPluginReferenceReminderBody"
  4273. file: "apps/zcode-cli/packages/core/src/plugin-reference/reminder.ts"
  4274. - symbol: "injectPluginReferenceReminderFromTurn"
  4275. file: "apps/zcode-cli/packages/core/src/runtime/methods/plugin-reference.ts"
  4276. - id: "persistence.plugin-reference-reminder-history"
  4277. kind: "persistence"
  4278. label: "Append-only model-only plugin_reference notices in session history"
  4279. codeSeeds:
  4280. - symbol: "persistSyntheticUserNoticeForSession"
  4281. file: "apps/zcode-cli/packages/core/src/runtime/methods/message-persistence.ts"
  4282. - symbol: "hydrateMessageHistoryFromSession"
  4283. file: "apps/zcode-cli/packages/core/src/agent/session-history-hydrator.ts"
  4284. - id: "boundary.local-development-runtime"
  4285. kind: "delivery-boundary"
  4286. label: "Local source development runtime"
  4287. - id: "boundary.packaged-desktop-runtime"
  4288. kind: "delivery-boundary"
  4289. label: "Packaged Stable or Preview desktop runtime"
  4290. - id: "boundary.zcode-cli-provider-transport"
  4291. kind: "delivery-boundary"
  4292. label: "ZCode CLI default AI SDK provider transport"
  4293. - id: "boundary.cua-desktop-local"
  4294. kind: "delivery-boundary"
  4295. label: "macOS and Windows desktop-local CUA authorization boundary"
  4296. - id: "evidence.conversation-catalog"
  4297. kind: "evidence"
  4298. label: "Conversation case catalog and E2E matrix"
  4299. docs:
  4300. - "docs/conversation-session-case-catalog.md"
  4301. - "docs/testing/conversation-session-e2e-coverage-matrix.md"
  4302. - id: "evidence.conversation-fault-catalog"
  4303. kind: "evidence"
  4304. label: "Conversation environment fault catalog and coverage matrix"
  4305. docs:
  4306. - "docs/testing/conversation-session-environment-fault-catalog.md"
  4307. - "docs/testing/conversation-session-fault-e2e-coverage-matrix.md"
  4308. - "docs/testing/conversation-session-network-sse-decision-worksheet.md"
  4309. codeSeeds:
  4310. - file: "apps/zcode-cli/packages/core/tests/runtime-stream-recovery.test.ts"
  4311. - file: "apps/zcode-cli/packages/bootstrap/tests/product-projection.test.ts"
  4312. - id: "evidence.development-storage-isolation"
  4313. kind: "evidence"
  4314. label: "Development storage Docker E2E and path tests"
  4315. codeSeeds:
  4316. - file: "packages/desktop/test/e2e/conversation-session/conversation-session-development-storage-isolation.test.ts"
  4317. - file: "packages/shared/test/storageProfile.test.ts"
  4318. - file: "packages/desktop/test/desktopStorageProfile.test.ts"
  4319. - id: "evidence.model-io-full-retention-tests"
  4320. kind: "evidence"
  4321. label: "ModelIO full retention schema, UI, protocol, and writer tests"
  4322. codeSeeds:
  4323. - file: "apps/zcode-cli/packages/bootstrap/tests/zcode-protocol.test.ts"
  4324. - file: "apps/zcode-cli/packages/adapters/tests/runner.test.ts"
  4325. - id: "evidence.model-request-session-type-tests"
  4326. kind: "evidence"
  4327. label: "Model request session type classification and transport tests"
  4328. codeSeeds:
  4329. - file: "apps/zcode-cli/packages/core/tests/model-request-session-type.test.ts"
  4330. - file: "apps/zcode-cli/packages/adapters/tests/runner-options.test.ts"
  4331. - file: "apps/zcode-cli/packages/adapters/tests/runner.test.ts"
  4332. - id: "evidence.mcp-runtime-tests"
  4333. kind: "evidence"
  4334. label: "MCP runtime, tool bridge, and lifecycle tests"
  4335. codeSeeds:
  4336. - file: "apps/zcode-cli/packages/core/tests/mcp-runtime.test.ts"
  4337. - file: "apps/zcode-cli/packages/core/tests/mcp-tool-bridge.test.ts"
  4338. - file: "apps/zcode-cli/packages/adapters/tests/mcp.test.ts"
  4339. - file: "apps/zcode-cli/packages/adapters/tests/mcp-process-lifecycle.test.ts"
  4340. - file: "apps/zcode-cli/packages/adapters/tests/mcp-version-negotiation.test.ts"
  4341. - file: "packages/desktop/test/upstreamReplayServer.test.ts"
  4342. - file: "packages/desktop/test/e2e/settings/mcp/mcp-dual-era-version-negotiation.test.ts"
  4343. - file: "packages/desktop/test/e2e/conversation-session/manual-review/pending/conversation-session-browser-use-iab-multisession.test.ts"
  4344. - id: "capability.window-single-host-controller-r1"
  4345. kind: "capability"
  4346. label: "R1 window-scoped single Host controller"
  4347. aliases:
  4348. - "single window Host"
  4349. - "窗口唯一 Host"
  4350. - "R1 Host controller"
  4351. docs:
  4352. - "docs/architecture/r1-single-window-host-refactor.md"
  4353. - "docs/architecture/zcode-code-architecture-overview.md"
  4354. codeSeeds:
  4355. - symbol: "createRemoteWorkspaceSessionManager"
  4356. file: "packages/desktop/src/main/desktopRemoteSessions.ts"
  4357. - file: "packages/desktop/src/host/index.ts"
  4358. - symbol: "useGlobalTaskList"
  4359. file: "packages/ui/src/hooks/useGlobalTaskList.ts"
  4360. - symbol: "createWebRemoteControlSharedHostAttachments"
  4361. file: "packages/desktop/src/main/webRemoteControlSharedHostAttachments.ts"
  4362. - id: "evidence.r3-remote-automation-plan"
  4363. kind: "evidence"
  4364. label: "Planned R3 post-merge real remote automation cases and readiness inventory"
  4365. docs:
  4366. - "docs/testing/r3-remote-automation-plan.md"
  4367. - "docs/testing/r3-remote-automation-case-matrix.md"
  4368. - "docs/archive/remote-r3/r3-remote-automation-readiness-2026-09-07.md"
  4369. - id: "state.window-host-controller-projection"
  4370. kind: "state-owner"
  4371. label: "Window Host workspace and task projection"
  4372. docs:
  4373. - "docs/architecture/r1-single-window-host-refactor.md"
  4374. - "docs/web-remote-control/task-realtime-sync.md"
  4375. codeSeeds:
  4376. - symbol: "useGlobalTaskList"
  4377. file: "packages/ui/src/hooks/useGlobalTaskList.ts"
  4378. - file: "packages/services/src/task-index"
  4379. - id: "service.window-host-remote-connection-registry"
  4380. kind: "service"
  4381. label: "Window Host remote connection and logical session registry"
  4382. docs:
  4383. - "docs/architecture/r1-single-window-host-refactor.md"
  4384. codeSeeds:
  4385. - symbol: "createWindowRemoteConnectionRegistry"
  4386. file: "packages/desktop/src/host/windowRemoteConnectionRegistry.ts"
  4387. - symbol: "createRemoteWorkspaceSessionManager"
  4388. file: "packages/desktop/src/main/desktopRemoteSessions.ts"
  4389. - id: "boundary.window-host-scoped-service-attachment"
  4390. kind: "boundary"
  4391. label: "Window Host local and remote scoped MessagePort attachment"
  4392. docs:
  4393. - "docs/architecture/r1-single-window-host-refactor.md"
  4394. - "docs/web-remote-control/web-remote-control-architecture.md"
  4395. codeSeeds:
  4396. - file: "packages/desktop/src/host/index.ts"
  4397. - symbol: "createWebRemoteControlSharedHostAttachments"
  4398. file: "packages/desktop/src/main/webRemoteControlSharedHostAttachments.ts"
  4399. - file: "packages/desktop/src/renderer/src/main.tsx"
  4400. - id: "evidence.ssh-remote-p0-e2e"
  4401. kind: "evidence"
  4402. label: "Real SSH connection lifecycle and multi-workspace P0 Electron E2E"
  4403. docs:
  4404. - "docs/testing/ssh-remote-p0-e2e-plan.md"
  4405. - "docs/conversation-session-case-catalog.md"
  4406. - "docs/testing/conversation-session-e2e-coverage-matrix.md"
  4407. codeSeeds:
  4408. - file: "packages/desktop/test/e2e/conversation-session/remote/connection/conversation-session-ssh-remote-p0.test.ts"
  4409. - file: "packages/desktop/test/e2e/conversation-session/remote/connection/manual-review/pending/conversation-session-ssh-remote-cancel-retry.test.ts"
  4410. - id: "capability.unified-zcode-lite-server"
  4411. kind: "capability"
  4412. label: "Unified ZCode Lite and multi-server control"
  4413. aliases:
  4414. - "ZCode Lite"
  4415. - "multi-server"
  4416. - "unified remote architecture"
  4417. - "统一多端架构"
  4418. - "多 Server 管理"
  4419. docs:
  4420. - "docs/architecture/r3-source-server-remote-architecture.md"
  4421. - "docs/archive/remote-r3/r3-source-server-remote-impact-brief.md"
  4422. - "docs/architecture/unified-zcode-lite-server-multi-server-plan.md"
  4423. - "docs/architecture/zcode-code-architecture-overview.md"
  4424. - id: "capability.remote-environment-compatibility"
  4425. kind: "capability"
  4426. label: "Remote Source Server environment compatibility"
  4427. aliases:
  4428. - "SSH systemd fallback"
  4429. - "remote daemon capability"
  4430. - "远端环境兼容"
  4431. - "SSH 服务管理器探测"
  4432. docs:
  4433. - "docs/architecture/r3-source-server-remote-architecture.md"
  4434. - "docs/archive/remote-r3/r3-source-server-remote-impact-brief.md"
  4435. - "docs/archive/remote-r3/r3-source-server-release-test-plan.md"
  4436. codeSeeds:
  4437. - symbol: "createSourceServerTransportAdapter"
  4438. file: "packages/server/src/source-server/transportAdapter.ts"
  4439. - symbol: "runServerCli"
  4440. file: "packages/zcode-server-cli/src/cli.ts"
  4441. - symbol: "registerService"
  4442. file: "packages/zcode-server-cli/src/platform/serviceManager.ts"
  4443. - symbol: "detectRemoteAssetTools"
  4444. file: "packages/server/src/remote/remoteAssetPreflight.ts"
  4445. - symbol: "writeStableLauncher"
  4446. file: "packages/zcode-server-cli/src/runtime/stableLauncher.ts"
  4447. - symbol: "stageRelease"
  4448. file: "packages/zcode-server-cli/src/packaging/stage.ts"
  4449. - id: "surface.multi-server-controller-ui"
  4450. kind: "ui-surface"
  4451. label: "Desktop, Browser, and attached Mobile multi-server view"
  4452. docs:
  4453. - "docs/architecture/unified-zcode-lite-server-multi-server-plan.md"
  4454. codeSeeds:
  4455. - symbol: "Root"
  4456. file: "packages/ui/src/Root.tsx"
  4457. - file: "packages/web/src/main.tsx"
  4458. - file: "packages/desktop/src/renderer/src/main.tsx"
  4459. - id: "capability.remote-conversation-workspace"
  4460. kind: "capability"
  4461. label: "Source-scoped legacy conversation data (UI retired)"
  4462. aliases:
  4463. - "remote no-project chat"
  4464. - "remote conversation backing workspace"
  4465. - "远程无项目聊天"
  4466. - "远程任务聊天"
  4467. docs:
  4468. - "docs/architecture/remote-domain-simplification-and-conversation-workspace-spec.md"
  4469. - "docs/superpowers/specs/2026-07-10-non-project-conversation-workspace-design.md"
  4470. codeSeeds:
  4471. - symbol: "ensureConversationWorkspace"
  4472. file: "packages/services/src/file/file.ts"
  4473. - symbol: "useRemoteWorkspaceHistory"
  4474. file: "packages/ui/src/root/useRemoteWorkspaceHistory.ts"
  4475. - symbol: "RemoteConnectionDeviceStep"
  4476. file: "packages/ui/src/RemoteConnectionDialogContent.tsx"
  4477. - id: "capability.remote-device-connection-ux"
  4478. kind: "capability"
  4479. label: "Remote device connection naming, status presentation, and entry routing"
  4480. aliases:
  4481. - "remote device connection"
  4482. - "SSH alias device name"
  4483. - "remote connection step 4"
  4484. - "远程设备连接"
  4485. - "连接状态"
  4486. - "收起远程连接弹窗"
  4487. docs:
  4488. - "docs/architecture/remote-device-connection-ux-spec.md"
  4489. - "docs/remote/project-first-remote-navigation-spec.md"
  4490. - "docs/collapsible-remote-connection-dialog.md"
  4491. - "docs/ui/ssh-config-alias.md"
  4492. codeSeeds:
  4493. - symbol: "SourceServerDirectory.recordHandshake"
  4494. file: "packages/desktop/src/host/sourceServerDirectory.ts"
  4495. - symbol: "RemoteConnectionDialog"
  4496. file: "packages/ui/src/SSHDialog.tsx"
  4497. - symbol: "SourceServerManagementPanel"
  4498. file: "packages/ui/src/settings/SourceServerManagementPanel.tsx"
  4499. - symbol: "RemoteProjectConnectionDetails"
  4500. file: "packages/ui/src/WorkspaceSidebar/RemoteProjectConnectionDetails.tsx"
  4501. - id: "surface.remote-device-settings"
  4502. kind: "ui-surface"
  4503. label: "Settings remote device and connection profile management"
  4504. codeSeeds:
  4505. - symbol: "SourceServerManagementPanel"
  4506. file: "packages/ui/src/settings/SourceServerManagementPanel.tsx"
  4507. - symbol: "useSourceServerManagementSnapshot"
  4508. file: "packages/ui/src/hooks/useSourceServerManagementSnapshot.ts"
  4509. - id: "surface.remote-connection-device-picker"
  4510. kind: "ui-surface"
  4511. label: "Remote connection device picker and project selection flow"
  4512. codeSeeds:
  4513. - symbol: "RemoteConnectionDeviceStep"
  4514. file: "packages/ui/src/RemoteConnectionDialogContent.tsx"
  4515. - symbol: "SSHDialog"
  4516. file: "packages/ui/src/SSHDialog.tsx"
  4517. - id: "surface.remote-source-task-sidebar"
  4518. kind: "ui-surface"
  4519. label: "Flat project sidebar and local projectless tasks"
  4520. codeSeeds:
  4521. - symbol: "WorkspaceSidebar"
  4522. file: "packages/ui/src/WorkspaceSidebar.tsx"
  4523. - symbol: "partitionWorkspaceTabsByPurpose"
  4524. file: "packages/ui/src/lib/workspacePurpose.ts"
  4525. - id: "shared.source-server-update-action"
  4526. kind: "shared-ui"
  4527. label: "Source Server guarded update action"
  4528. docs:
  4529. - "docs/architecture/r3-source-server-remote-architecture.md"
  4530. codeSeeds:
  4531. - symbol: "runSourceServerUpdate"
  4532. file: "packages/ui/src/lib/sourceServerUpdateAction.ts"
  4533. - symbol: "createSourceServerUpdateNotificationController"
  4534. file: "packages/ui/src/root/sourceServerUpdateNotifications.ts"
  4535. - symbol: "ToastMessageView"
  4536. file: "packages/ui/src/components/ui/toast.tsx"
  4537. - id: "state.source-server-update-operation-progress"
  4538. kind: "state-owner"
  4539. label: "Host-owned Source Server update operation progress"
  4540. docs:
  4541. - "docs/architecture/r3-source-server-remote-architecture.md"
  4542. codeSeeds:
  4543. - symbol: "createSourceServerManagementService"
  4544. file: "packages/desktop/src/host/sourceServerManagementService.ts"
  4545. - symbol: "useSourceServerOperationLogs"
  4546. file: "packages/ui/src/hooks/useSourceServerOperationLogs.ts"
  4547. - symbol: "SourceServerUpdateActivity"
  4548. file: "packages/ui/src/settings/SourceServerUpdateActivity.tsx"
  4549. - id: "state.remote-workspace-ui-projection"
  4550. kind: "state-owner"
  4551. label: "Unified remote device, open workspace, attachment, and purpose projection"
  4552. codeSeeds:
  4553. - symbol: "useSourceServerManagementSnapshot"
  4554. file: "packages/ui/src/hooks/useSourceServerManagementSnapshot.ts"
  4555. - symbol: "partitionWorkspaceTabsByPurpose"
  4556. file: "packages/ui/src/lib/workspacePurpose.ts"
  4557. - symbol: "useRemoteWorkspaceHistory"
  4558. file: "packages/ui/src/root/useRemoteWorkspaceHistory.ts"
  4559. - id: "service.remote-workspace-intent-controller"
  4560. kind: "service"
  4561. label: "Remote device/workspace intent controller"
  4562. docs:
  4563. - "docs/architecture/remote-domain-simplification-and-conversation-workspace-spec.md"
  4564. codeSeeds:
  4565. - symbol: "useRemoteWorkspaceHistory"
  4566. file: "packages/ui/src/root/useRemoteWorkspaceHistory.ts"
  4567. - symbol: "SourceServerConnectionManager"
  4568. file: "packages/desktop/src/host/sourceServerConnectionManager.ts"
  4569. - symbol: "createWindowRemoteConnectionRegistry"
  4570. file: "packages/desktop/src/host/windowRemoteConnectionRegistry.ts"
  4571. - id: "persistence.remote-open-workspace-set"
  4572. kind: "persistence"
  4573. label: "Remote open workspace set with project/conversation purpose"
  4574. docs:
  4575. - "docs/architecture/remote-domain-simplification-and-conversation-workspace-spec.md"
  4576. - "docs/remote-workspace-session-unified-settings.md"
  4577. codeSeeds:
  4578. - symbol: "buildRemoteWorkspacePersistPatch"
  4579. file: "packages/ui/src/root/remoteWorkspaceSessionPersistence.ts"
  4580. - symbol: "readPersistedWorkspaceSessionEntries"
  4581. file: "packages/ui/src/lib/remoteWorkspaceHistory.ts"
  4582. - id: "surface.source-settings-scope"
  4583. kind: "ui-surface"
  4584. label: "Non-Provider Settings Source user/server and project scope routing"
  4585. docs:
  4586. - "docs/archive/remote-r3/r3-provider-refactor-merge.md"
  4587. codeSeeds:
  4588. - symbol: "SettingsPage"
  4589. file: "packages/ui/src/SettingsPage.tsx"
  4590. - symbol: "useWorkspaceServicesResolution"
  4591. file: "packages/ui/src/hooks/useWorkspaceServices.tsx"
  4592. - id: "service.source-settings-attachment"
  4593. kind: "service"
  4594. label: "Desktop-only Source user/server settings attachment"
  4595. codeSeeds:
  4596. - symbol: "createSourceSettingsServiceCollection"
  4597. file: "packages/desktop/src/host/sourceSettingsServiceCollection.ts"
  4598. - symbol: "createWindowHostAttachmentRegistry"
  4599. file: "packages/desktop/src/host/windowHostAttachmentRegistry.ts"
  4600. - id: "persistence.source-workspace-migration-ledger"
  4601. kind: "persistence"
  4602. label: "Source workspace canonical alias, phase ledger and conflict report"
  4603. codeSeeds:
  4604. - symbol: "SourceServerWorkspaceAliasRepo"
  4605. file: "packages/services/src/session/sourceServerWorkspaceAliasRepo.ts"
  4606. - id: "state.controller-server-directory"
  4607. kind: "state-owner"
  4608. label: "Controller-local server connections and aggregate projection"
  4609. docs:
  4610. - "docs/architecture/r3-source-server-remote-architecture.md"
  4611. codeSeeds:
  4612. - symbol: "SourceServerDirectory"
  4613. file: "packages/desktop/src/host/sourceServerDirectory.ts"
  4614. - id: "service.zcode-stable-launcher"
  4615. kind: "service"
  4616. label: "Stable launcher, bootstrap, and version runtime manager"
  4617. docs:
  4618. - "docs/architecture/r2-server-cli-and-daemon.md"
  4619. codeSeeds:
  4620. - symbol: "ReleaseManager"
  4621. file: "packages/zcode-server-cli/src/runtime/releaseManager.ts"
  4622. - symbol: "resolveCoreServerId"
  4623. file: "packages/zcode-server-cli/src/server-core/serverIdentity.ts"
  4624. - id: "service.multi-server-controller"
  4625. kind: "service"
  4626. label: "Desktop Source Server connection and logical session controller"
  4627. docs:
  4628. - "docs/architecture/r3-source-server-remote-architecture.md"
  4629. codeSeeds:
  4630. - symbol: "SourceServerConnectionManager"
  4631. file: "packages/desktop/src/host/sourceServerConnectionManager.ts"
  4632. - symbol: "createWindowRemoteConnectionRegistry"
  4633. file: "packages/desktop/src/host/windowRemoteConnectionRegistry.ts"
  4634. - symbol: "createRemoteWorkspaceSessionManager"
  4635. file: "packages/desktop/src/main/desktopRemoteSessions.ts"
  4636. - id: "service.source-server-workspace-mapper"
  4637. kind: "service"
  4638. label: "Source Server Core canonical workspace identity mapper"
  4639. docs:
  4640. - "docs/architecture/r3-source-server-remote-architecture.md"
  4641. codeSeeds:
  4642. - symbol: "createSourceServerWorkspaceService"
  4643. file: "packages/services/src/source-server-workspace/sourceServerWorkspaceService.ts"
  4644. - file: "packages/zcode-server-cli/src/server-core/http.ts"
  4645. - id: "persistence.zcode-server-identity"
  4646. kind: "persistence"
  4647. label: "Persistent Source Server installation identity"
  4648. docs:
  4649. - "docs/architecture/unified-zcode-lite-server-multi-server-plan.md"
  4650. - id: "persistence.zcode-resource-store"
  4651. kind: "persistence"
  4652. label: "Planned source-server prompt resource store"
  4653. docs:
  4654. - "docs/architecture/unified-zcode-lite-server-multi-server-plan.md"
  4655. - "docs/remote-prompt-attachment-materialization.md"
  4656. - id: "boundary.unified-server-transport"
  4657. kind: "delivery-boundary"
  4658. label: "Transport-independent Server RPC over local, WebSocket, and SSH tunnel"
  4659. docs:
  4660. - "docs/architecture/unified-zcode-lite-server-multi-server-plan.md"
  4661. - "docs/architecture/rpc.md"
  4662. codeSeeds:
  4663. - symbol: "createSourceServerTransportAdapter"
  4664. file: "packages/server/src/source-server/transportAdapter.ts"
  4665. - symbol: "connectServerRemoteOverDuplex"
  4666. file: "packages/desktop/src/host/serverRemoteConnection.ts"
  4667. - id: "evidence.browser-screenshot-surface-tests"
  4668. kind: "evidence"
  4669. label: "Browser screenshot surface and bounded activity coverage"
  4670. codeSeeds:
  4671. - file: "packages/desktop/scripts/browser-background-activity-smoke.mjs"
  4672. - id: "evidence.browser-webview-video-recording-tests"
  4673. kind: "evidence"
  4674. label: "Browser WebView recording schema, SDK, main, artifact and runtime coverage"
  4675. codeSeeds:
  4676. - file: "apps/zcode-cli/packages/core/tests/browser-client.test.ts"
  4677. - id: "evidence.embedded-browser-network-policy-tests"
  4678. kind: "evidence"
  4679. label: "Desktop Chromium Session network policy target and certificate tests"
  4680. docs:
  4681. - "docs/testing/browser-use-coverage-matrix.md"
  4682. codeSeeds: [] # App 单测已退役,当前没有该层自动化证据。
  4683. - id: "evidence.host-api-network-policy-tests"
  4684. kind: "evidence"
  4685. label: "Host API proxy, No Proxy, custom CA, lifecycle, and remote-authority tests"
  4686. docs:
  4687. - "docs/superpowers/specs/2026-08-25-host-api-proxy-design.md"
  4688. codeSeeds:
  4689. - file: "packages/desktop/src/host/remoteWorkspaceServiceCollection.ts"
  4690. - id: "evidence.embedded-browser-responsive-viewport-tests"
  4691. kind: "evidence"
  4692. label: "Responsive browser viewport interaction coverage"
  4693. codeSeeds:
  4694. - file: "packages/desktop/test/e2e/browser/design/browser-human-viewport-preference.test.ts"
  4695. - id: "evidence.browser-use-agent-guidance-tests"
  4696. kind: "evidence"
  4697. label: "Browser Use bundled and fallback agent guidance coverage"
  4698. codeSeeds:
  4699. - file: "apps/zcode-cli/packages/core/tests/browser-manifest.test.ts"
  4700. - id: "evidence.browser-use-plugin-distribution-tests"
  4701. kind: "evidence"
  4702. label: "Browser Use package, manifest, seed, SEA, and cache version alignment coverage"
  4703. codeSeeds:
  4704. - file: "apps/zcode-cli/packages/bootstrap/tests/plugins.test.ts"
  4705. - file: "apps/zcode-cli/packages/bootstrap/tests/bundled-plugins-resilience.test.ts"
  4706. - file: "apps/zcode-cli/packages/cli/tests/build-sea.test.mjs"
  4707. - file: "apps/zcode-cli/packages/adapters/tests/plugins.test.ts"
  4708. - file: "apps/zcode-cli/packages/node-repl-host/test/mcp-server.test.ts"
  4709. - file: "packages/desktop/test/runtime-asset-scripts.test.ts"
  4710. - id: "capability.side-pane-tab-strip"
  4711. kind: "capability"
  4712. label: "Responsive Side Pane tab strip"
  4713. aliases:
  4714. - "side panel tabs"
  4715. - "side pane tabs"
  4716. - "侧边面板标签"
  4717. docs:
  4718. - "docs/ui/side-pane-tabs.md"
  4719. - "docs/testing/side-pane-tabs-e2e-case-catalog.md"
  4720. - "docs/testing/side-pane-tabs-e2e-coverage-matrix.md"
  4721. codeSeeds:
  4722. - symbol: "AnimatedSidePanePanel"
  4723. file: "packages/ui/src/app-shell/AnimatedSidePanePanel.tsx"
  4724. - symbol: "SortableSidePaneTabTrigger"
  4725. file: "packages/ui/src/app-shell/SidePaneTabTrigger.tsx"
  4726. - symbol: "SidePaneTabTitleTooltip"
  4727. file: "packages/ui/src/app-shell/SidePaneTabTitleTooltip.tsx"
  4728. - id: "surface.workspace-side-pane-tab-strip"
  4729. kind: "ui-surface"
  4730. label: "Workspace Side Pane tab strip"
  4731. codeSeeds:
  4732. - symbol: "AnimatedSidePanePanel"
  4733. file: "packages/ui/src/app-shell/AnimatedSidePanePanel.tsx"
  4734. - id: "capability.windows-window-chrome"
  4735. kind: "capability"
  4736. label: "Windows version-aware workspace window chrome"
  4737. aliases:
  4738. - "Windows rounded corners"
  4739. - "Windows maximize chrome"
  4740. - "Windows 窗口圆角"
  4741. docs:
  4742. - "docs/ui/windows-titlebar-menu.md"
  4743. codeSeeds:
  4744. - symbol: "useAppChromeState"
  4745. file: "packages/ui/src/app-shell/useAppChromeState.ts"
  4746. - id: "surface.workspace-shell-window-edge"
  4747. kind: "ui-surface"
  4748. label: "Workspace shell outer window edge"
  4749. docs:
  4750. - "docs/ui/windows-titlebar-menu.md"
  4751. codeSeeds:
  4752. - symbol: "WorkspaceShellLayout"
  4753. file: "packages/ui/src/app-shell/WorkspaceShellLayout.tsx"
  4754. - id: "state.desktop-window-chrome"
  4755. kind: "state-owner"
  4756. label: "Electron BrowserWindow maximize and Windows build state"
  4757. codeSeeds:
  4758. - symbol: "createBrowserWindow"
  4759. file: "packages/desktop/src/main/desktopWindowChrome.ts"
  4760. - id: "evidence.browser-tab-residency-tests"
  4761. kind: "evidence"
  4762. label: "Browser tab residency policy, persistence, lifecycle, and Electron resource evidence"
  4763. docs:
  4764. - "docs/conversation-session-case-catalog.md"
  4765. - "docs/testing/conversation-session-e2e-coverage-matrix.md"
  4766. - "docs/testing/browser-use-coverage-matrix.md"
  4767. codeSeeds: [] # App 单测已退役,当前没有该层自动化证据。
  4768. - id: "capability.project-creation-folder-confirmation"
  4769. kind: "capability"
  4770. label: "Project creation folder confirmation"
  4771. aliases: ["创建项目信任文件夹", "项目目录确认", "project folder trust confirmation"]
  4772. docs: ["docs/specs/project-creation-folder-confirmation.md"]
  4773. codeSeeds:
  4774. - symbol: "ProjectFolderTrustDialog"
  4775. file: "packages/ui/src/project-sidebar/ProjectFolderTrustDialog.tsx"
  4776. - symbol: "ProjectEditor"
  4777. file: "packages/ui/src/project-sidebar/ProjectEditor.tsx"
  4778. - id: "surface.project-creation-form"
  4779. kind: "ui-surface"
  4780. label: "Project creation form and selected folder draft"
  4781. docs: ["docs/specs/project-creation-folder-confirmation.md"]
  4782. codeSeeds:
  4783. - symbol: "ProjectCreation"
  4784. file: "packages/ui/src/project-sidebar/ProjectCreation.tsx"
  4785. - symbol: "ProjectEditor"
  4786. file: "packages/ui/src/project-sidebar/ProjectEditor.tsx"
  4787. - id: "capability.workspace-hook-persistent-trust"
  4788. kind: "capability"
  4789. label: "Workspace Hook persistent trust and runtime admission"
  4790. aliases:
  4791. - "workspace hook trust"
  4792. - "hook trust"
  4793. - "workspace hook review"
  4794. - "工作区 Hook 信任"
  4795. - "钩子信任"
  4796. docs:
  4797. - "docs/specs/workspace-hook-trust-persistent-only.md"
  4798. codeSeeds:
  4799. - symbol: "WorkspaceHookReviewController"
  4800. file: "apps/zcode-cli/packages/bootstrap/src/app/workspace-hook-review-controller.ts"
  4801. - symbol: "useWorkspaceHookInlineTrust"
  4802. file: "packages/ui/src/settings/useWorkspaceHookInlineTrust.ts"
  4803. - id: "capability.conversation-hook-turn-summary"
  4804. kind: "capability"
  4805. label: "Conversation turn Hook execution summary"
  4806. aliases:
  4807. - "Hook UI"
  4808. - "Hook execution summary"
  4809. - "conversation Hook icon"
  4810. - "对话钩子图标"
  4811. - "本轮钩子"
  4812. docs:
  4813. - "docs/chat/conversation-hook-turn-summary.md"
  4814. codeSeeds:
  4815. - symbol: "ProductProjection.onHookRunLifecycle"
  4816. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  4817. - symbol: "ConversationHookDetailsAction"
  4818. file: "packages/ui/src/v4/ConversationHookDetailsAction.tsx"
  4819. - symbol: "ConversationTurnGroup"
  4820. file: "packages/ui/src/v4/ConversationTurnGroup.tsx"
  4821. - id: "surface.conversation-turn-hook-summary"
  4822. kind: "ui-surface"
  4823. label: "Conversation terminal turn Hook action and details Popover"
  4824. docs:
  4825. - "docs/chat/conversation-hook-turn-summary.md"
  4826. codeSeeds:
  4827. - symbol: "ConversationHookDetailsAction"
  4828. file: "packages/ui/src/v4/ConversationHookDetailsAction.tsx"
  4829. - symbol: "ConversationAssistantTextActions"
  4830. file: "packages/ui/src/v4/ConversationRowView.tsx"
  4831. - symbol: "ConversationTurnGroup"
  4832. file: "packages/ui/src/v4/ConversationTurnGroup.tsx"
  4833. - id: "surface.workspace-hook-settings-trust-row"
  4834. kind: "ui-surface"
  4835. label: "Settings Workspace Hook trust row"
  4836. docs:
  4837. - "docs/specs/workspace-hook-trust-persistent-only.md"
  4838. codeSeeds:
  4839. - symbol: "HooksSection"
  4840. file: "packages/ui/src/settings/HooksSection.tsx"
  4841. - symbol: "HooksList"
  4842. file: "packages/ui/src/settings/HooksList.tsx"
  4843. - id: "capability.hooks-settings"
  4844. kind: "capability"
  4845. label: "Scoped Hooks settings and plugin Hook projection"
  4846. aliases:
  4847. - "Hooks settings"
  4848. - "钩子设置"
  4849. docs:
  4850. - "docs/settings-hook-list.md"
  4851. - "docs/hooks-runtime-contract.md"
  4852. - "docs/plugin-hooks-compat.md"
  4853. codeSeeds:
  4854. - symbol: "HooksSection"
  4855. file: "packages/ui/src/settings/HooksSection.tsx"
  4856. - symbol: "HooksList"
  4857. file: "packages/ui/src/settings/HooksList.tsx"
  4858. - symbol: "HookForm"
  4859. file: "packages/ui/src/settings/HookForm.tsx"
  4860. - id: "surface.hooks-settings"
  4861. kind: "ui-surface"
  4862. label: "Independent Hooks settings page"
  4863. codeSeeds:
  4864. - symbol: "HooksSection"
  4865. file: "packages/ui/src/settings/HooksSection.tsx"
  4866. - id: "state.hooks-settings-store"
  4867. kind: "state-owner"
  4868. label: "Workspace-isolated Hooks settings store"
  4869. codeSeeds:
  4870. - symbol: "useHooksStore"
  4871. file: "packages/ui/src/store/hooksStore.ts"
  4872. - id: "persistence.hooks-config-files"
  4873. kind: "persistence"
  4874. label: "User and workspace .zcode Hook configuration files"
  4875. docs:
  4876. - "docs/hooks-runtime-contract.md"
  4877. - id: "state.workspace-hook-review-renderer-binding"
  4878. kind: "state-owner"
  4879. label: "Renderer Workspace Hook command and immutable review bindings"
  4880. codeSeeds:
  4881. - symbol: "useWorkspaceHookReviewStore"
  4882. file: "packages/ui/src/store/workspaceHookReviewStore.ts"
  4883. - id: "service.workspace-hook-runtime-review-controller"
  4884. kind: "service"
  4885. label: "Runtime Workspace Hook review and Trust mutation controller"
  4886. codeSeeds:
  4887. - symbol: "WorkspaceHookReviewController"
  4888. file: "apps/zcode-cli/packages/bootstrap/src/app/workspace-hook-review-controller.ts"
  4889. - id: "service.workspace-hook-settings-pretrust"
  4890. kind: "service"
  4891. label: "Workspace-scoped Settings pretrust authority without a task"
  4892. codeSeeds:
  4893. - symbol: "grantWorkspaceHookTrust"
  4894. file: "apps/zcode-cli/packages/bootstrap/src/workspace-hook-trust-cli.ts"
  4895. - symbol: "grantWorkspaceHookTrustForProtocol"
  4896. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/workspace-hook-trust.ts"
  4897. - symbol: "createHooksService"
  4898. file: "packages/services/src/hooks/hooksService.ts"
  4899. - id: "state.workspace-hook-managed-policy"
  4900. kind: "state-owner"
  4901. label: "Trusted Host-owned Workspace Hook managed policy provider"
  4902. codeSeeds:
  4903. - symbol: "WorkspaceHookPolicyProvider"
  4904. file: "apps/zcode-cli/packages/core/src/hooks/workspace-hook-policy.ts"
  4905. - symbol: "ZCodeProtocolAgentDependencies"
  4906. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol/server-types.ts"
  4907. - id: "persistence.workspace-hook-trust-store"
  4908. kind: "persistence"
  4909. label: "User-owned Workspace Hook persistent Trust store"
  4910. codeSeeds:
  4911. - symbol: "FileWorkspaceHookTrustStore"
  4912. file: "apps/zcode-cli/packages/adapters/src/storage/workspace-hook-trust-store.ts"
  4913. - id: "evidence.workspace-hook-persistent-trust-tests"
  4914. kind: "evidence"
  4915. label: "Workspace Hook Settings, controller, identity, and Trust store coverage"
  4916. codeSeeds:
  4917. - file: "apps/zcode-cli/packages/bootstrap/tests/workspace-hook-review-controller.test.ts"
  4918. - file: "apps/zcode-cli/packages/adapters/tests/workspace-hook-trust-store.test.ts"
  4919. - id: "capability.workflow-run-confirmation"
  4920. kind: "capability"
  4921. label: "CreateWorkflow run confirmation gate with analysis preview"
  4922. aliases:
  4923. - "workflow confirmation"
  4924. - "run this workflow"
  4925. - "CreateWorkflow permission"
  4926. - "运行工作流确认"
  4927. - "工作流权限"
  4928. docs:
  4929. - "docs/dynamic-workflow/launch.md"
  4930. - "apps/zcode-cli/packages/dynamic-workflow/docs/analysis.md"
  4931. codeSeeds:
  4932. - symbol: "createWorkflowToolEntry"
  4933. file: "apps/zcode-cli/packages/core/src/tool/handlers/create-workflow.ts"
  4934. - symbol: "resolveToolPermission"
  4935. file: "apps/zcode-cli/packages/core/src/tool/executor/permission-flow.ts"
  4936. - symbol: "buildProtocolPermissionOptions"
  4937. file: "apps/zcode-cli/packages/bootstrap/src/permission-options.ts"
  4938. - symbol: "onPermissionRequested"
  4939. file: "apps/zcode-cli/packages/bootstrap/src/zcode-protocol-v4/product-projection.ts"
  4940. - id: "surface.workflow-run-confirmation-dialog"
  4941. kind: "ui-surface"
  4942. label: "Workflow run confirmation permission block (graph primary, folded script)"
  4943. aliases:
  4944. - "workflow permission block"
  4945. - "工作流确认弹窗"
  4946. codeSeeds:
  4947. - symbol: "WorkflowPermissionBlock"
  4948. file: "packages/ui/src/WorkflowPermissionBlock.tsx"
  4949. - symbol: "PermissionDialog"
  4950. file: "packages/ui/src/PermissionDialog.tsx"
  4951. - symbol: "pendingPermissionToLegacyRequest"
  4952. file: "packages/ui/src/v4/pendingInteractionAdapter.ts"
  4953. - id: "capability.workflow-live-run"
  4954. kind: "capability"
  4955. label: "Dynamic workflow live run: engine submit, background lifecycle and live progress"
  4956. aliases:
  4957. - "workflow live run"
  4958. - "workflow execution engine wiring"
  4959. - "dynamic workflow run"
  4960. - "workflowRuns state key"
  4961. - "工作流实时运行"
  4962. - "工作流执行引擎接线"
  4963. - "运行工作流"
  4964. docs:
  4965. - "docs/dynamic-workflow/presentation.md"
  4966. - "apps/zcode-cli/packages/dynamic-workflow/docs/execution-engine.md"
  4967. - "apps/zcode-cli/packages/dynamic-workflow/docs/analysis.md"
  4968. codeSeeds:
  4969. - symbol: "createWorkflowToolEntry"
  4970. file: "apps/zcode-cli/packages/core/src/tool/handlers/create-workflow.ts"
  4971. - symbol: "runWorkflowScript"
  4972. file: "apps/zcode-cli/packages/dynamic-workflow-runtime/src/harness.ts"
  4973. - symbol: "WorkflowEngine"
  4974. file: "apps/zcode-cli/packages/dynamic-workflow/src/engine/engine.ts"
  4975. - symbol: "createAgentRuntimeWorkflowDriver"
  4976. file: "apps/zcode-cli/packages/bootstrap/src/app/workflow-driver.ts"
  4977. - symbol: "createScriptWorkflowAgentRuntime"
  4978. file: "apps/zcode-cli/packages/bootstrap/src/app/script-workflow-child-runtime.ts"
  4979. - symbol: "BackgroundTaskTracker"
  4980. file: "apps/zcode-cli/packages/core/src/tool/executor/background-tasks.ts"
  4981. - symbol: "statePatchSchema"
  4982. file: "packages/shared/src/zcode-protocol-v4/delta.ts"
  4983. - symbol: "createDwfJournalStore"
  4984. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/repositories/dwf-journal.ts"
  4985. - id: "surface.workflow-run-detail-pane"
  4986. kind: "ui-surface"
  4987. label: "Workflow run side-pane tab (live causality graph, budget, cancel, event log)"
  4988. aliases:
  4989. - "workflow-run tab"
  4990. - "workflow run detail"
  4991. - "live workflow graph"
  4992. - "工作流运行详情"
  4993. - "工作流实时图"
  4994. docs:
  4995. - "docs/dynamic-workflow/presentation.md"
  4996. codeSeeds:
  4997. - symbol: "WorkflowCausalityGraph"
  4998. file: "packages/ui/src/components/workflow-graph/workflow-causality-graph.tsx"
  4999. - symbol: "WorkflowStepFlowNode"
  5000. file: "packages/ui/src/components/workflow-graph/step-node.tsx"
  5001. - symbol: "WorkspaceSidePaneTab"
  5002. file: "packages/ui/src/lib/workspaceSidePane.ts"
  5003. - id: "surface.workflow-actor-transcript"
  5004. kind: "ui-surface"
  5005. label: "Workflow actor transcript drill-down (read-only nested SessionPane)"
  5006. aliases:
  5007. - "actor transcript tab"
  5008. - "workflow agent session"
  5009. - "工作流 actor 会话"
  5010. - "工作流智能体 transcript"
  5011. docs:
  5012. - "docs/dynamic-workflow/presentation.md"
  5013. - "docs/subagent-session-side-tabs.md"
  5014. codeSeeds:
  5015. - symbol: "SubagentSessionSidePane"
  5016. file: "packages/ui/src/app-shell/SubagentSessionSidePane.tsx"
  5017. - symbol: "SessionPane"
  5018. file: "packages/ui/src/v4/SessionPane.tsx"
  5019. - id: "surface.workflow-tool-card-run-state"
  5020. kind: "ui-surface"
  5021. label: "CreateWorkflow tool card run state (compact clickable card once a run is joined)"
  5022. aliases:
  5023. - "workflow tool card"
  5024. - "workflow started card"
  5025. - "工作流工具卡"
  5026. - "工作流卡片运行态"
  5027. docs:
  5028. - "docs/dynamic-workflow/presentation.md"
  5029. codeSeeds:
  5030. - symbol: "CreateWorkflowToolCallBlock"
  5031. file: "packages/ui/src/ToolCallBlocks/renderers/create-workflow.tsx"
  5032. - symbol: "workflowRunByToolCallId"
  5033. file: "packages/ui/src/v4/SessionPane.tsx"
  5034. - id: "surface.workflow-task-island"
  5035. kind: "ui-surface"
  5036. label: "Workflows section in the conversation status capsule (Task Island) showing running workflow runs"
  5037. aliases:
  5038. - "task island"
  5039. - "workflow island"
  5040. - "workflow running pill"
  5041. - "任务岛"
  5042. - "工作流浮岛"
  5043. - "工作流分区"
  5044. docs:
  5045. - "docs/dynamic-workflow/presentation.md"
  5046. codeSeeds:
  5047. - symbol: "WorkflowStatusSection"
  5048. file: "packages/ui/src/v4/ConversationStatusPanel.tsx"
  5049. - symbol: "buildRunningWorkflowRuns"
  5050. file: "packages/ui/src/v4/conversationStatusPanelModel.ts"
  5051. - symbol: "getComposerBackgroundWorkCounts"
  5052. file: "packages/ui/src/v4/composer/ConversationBackgroundWorkTrigger.tsx"
  5053. - id: "capability.workflow-run-introspection"
  5054. kind: "capability"
  5055. label: "Workflow run introspection tools: ListWorkflowRuns / GetWorkflowRun read-only model tools over the dwf journal"
  5056. aliases:
  5057. - "list workflow runs"
  5058. - "workflow run status tool"
  5059. - "ListWorkflowRuns"
  5060. - "GetWorkflowRun"
  5061. - "工作流运行列表"
  5062. - "工作流状态查询"
  5063. - "工作流内省工具"
  5064. docs:
  5065. - "docs/dynamic-workflow/launch.md"
  5066. codeSeeds:
  5067. - symbol: "listWorkflowRunsToolEntry"
  5068. file: "apps/zcode-cli/packages/core/src/tool/handlers/list-workflow-runs.ts"
  5069. - symbol: "getWorkflowRunToolEntry"
  5070. file: "apps/zcode-cli/packages/core/src/tool/handlers/get-workflow-run.ts"
  5071. - symbol: "createDwfJournalStore"
  5072. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/repositories/dwf-journal.ts"
  5073. - id: "surface.submit-result-tool-card"
  5074. kind: "ui-surface"
  5075. label: "submit_result tool card (已提交结果): dedicated renderer for workflow actors' structured result submissions"
  5076. aliases:
  5077. - "submit result card"
  5078. - "submit_result renderer"
  5079. - "已提交结果"
  5080. - "提交结果工具卡"
  5081. docs:
  5082. - "docs/chat/submit-result-tool-card.md"
  5083. codeSeeds:
  5084. - symbol: "SubmitResultToolCallBlock"
  5085. file: "packages/ui/src/ToolCallBlocks/renderers/submit-result.tsx"
  5086. - symbol: "ZCODE_KNOWN_TOOL_NAMES"
  5087. file: "packages/shared/src/tool-identity.ts"
  5088. - symbol: "SUBMIT_RESULT_TOOL_NAME"
  5089. file: "apps/zcode-cli/packages/contracts/src/tools/submit-result.ts"
  5090. - id: "state.workflow-run-journal"
  5091. kind: "state-owner"
  5092. label: "Dynamic workflow run journal and cancel registry (engine-owned run truth)"
  5093. docs:
  5094. - "apps/zcode-cli/packages/dynamic-workflow/docs/execution-engine.md"
  5095. codeSeeds:
  5096. - symbol: "JournalStorePort"
  5097. file: "apps/zcode-cli/packages/dynamic-workflow/src/engine/types.ts"
  5098. - symbol: "SqliteDwfJournalStore"
  5099. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/repositories/dwf-journal.ts"
  5100. - id: "capability.conversation-sharing"
  5101. kind: "capability"
  5102. label: "Conversation sharing and shared-context continuation"
  5103. aliases:
  5104. - "share conversation"
  5105. - "conversation share"
  5106. - "会话分享"
  5107. - "回到 ZCode 继续"
  5108. docs:
  5109. - "docs/conversation-share-v1.md"
  5110. codeSeeds:
  5111. - symbol: "ConversationShareService"
  5112. file: "packages/services/src/conversation-share/conversationShareService.ts"
  5113. - symbol: "ConversationShareMenu"
  5114. file: "packages/ui/src/ConversationShareMenu.tsx"
  5115. - symbol: "formatSharedContextV1"
  5116. file: "packages/services/src/conversation-share/sharedContextFormatter.ts"
  5117. - id: "surface.conversation-share-publish"
  5118. kind: "ui-surface"
  5119. label: "Desktop conversation share selection and publish"
  5120. codeSeeds:
  5121. - symbol: "ConversationShareMenu"
  5122. file: "packages/ui/src/ConversationShareMenu.tsx"
  5123. - symbol: "ConversationShareConfirmationDock"
  5124. file: "packages/ui/src/v4/ConversationShareConfirmationDock.tsx"
  5125. - id: "service.conversation-share"
  5126. kind: "service"
  5127. label: "Conversation share API, remote artifact staging, and local import"
  5128. codeSeeds:
  5129. - symbol: "IConversationShareService"
  5130. file: "packages/services/src/conversation-share/conversationShare.ts"
  5131. - symbol: "ConversationShareHttpClient"
  5132. file: "packages/services/src/conversation-share/conversationShareHttpClient.ts"
  5133. - id: "surface.conversation-share-handover"
  5134. kind: "ui-surface"
  5135. label: "Desktop Share URL handover task"
  5136. docs:
  5137. - "docs/working-memory/provider-refactor/steps/todo-139-share-import-new-task-selection.md"
  5138. invariants:
  5139. - "Only reused=false import results seed an independent Composer draft before activation, keyed by the returned workspace identity. Copy initialized Root selection only; otherwise use the ordinary new-task Recent/default initializer after the View is ready. Empty history is not an import marker; user edits and reused sessions win. Import never updates Recent or waits for model execution."
  5140. codeSeeds:
  5141. - symbol: "seedImportedSessionDraft"
  5142. file: "packages/ui/src/v4/composer/newTaskDraft.ts"
  5143. - symbol: "useDraftConfigControl"
  5144. file: "packages/ui/src/v4/composer/useDraftConfigControl.ts"
  5145. - symbol: "ConversationShareLandingPage"
  5146. file: "packages/web/src/share/ConversationShareLandingPage.tsx"
  5147. - symbol: "useRootPlatformEffects"
  5148. file: "packages/ui/src/root/useRootPlatformEffects.ts"
  5149. - symbol: "ConversationShareImportNotice"
  5150. file: "packages/ui/src/v4/ConversationShareImportNotice.tsx"
  5151. - id: "shared-ui.conversation-share-context-chip"
  5152. kind: "shared-ui"
  5153. label: "Share URL context chip and parser"
  5154. codeSeeds:
  5155. - symbol: "serializeConversationShareContext"
  5156. file: "packages/ui/src/lib/conversationShareContext.ts"
  5157. - symbol: "parseConversationShareContext"
  5158. file: "packages/ui/src/lib/conversationShareContext.ts"
  5159. - id: "persistence.conversation-share-context"
  5160. kind: "persistence"
  5161. label: "Shared context import status and provenance"
  5162. codeSeeds:
  5163. - symbol: "transitionSharedContextImport"
  5164. file: "apps/zcode-cli/packages/adapters/src/storage/session-store/sqlite-session-store.ts"
  5165. - id: "service.zcode-agent-connection-scope"
  5166. kind: "service"
  5167. label: "Host-trusted ZCode Agent attachment connection scope"
  5168. codeSeeds:
  5169. - symbol: "createZCodeAgentConnectionScope"
  5170. file: "packages/services/src/zcode-agent/zcodeAgentConnectionScope.ts"
  5171. - id: "capability.plugin-creator-entry"
  5172. kind: "capability"
  5173. label: "Localized plugin management and bundled Plugin Creator draft entry"
  5174. aliases:
  5175. ["plugin-creator", "创建插件", "插件本地化", "添加插件市场", "拼音搜索", "插件默认展开"]
  5176. docs: ["docs/plugin-creator.md", "docs/plugin-capabilities-settings.md"]
  5177. codeSeeds:
  5178. - file: "packages/ui/src/settings/PluginAddMenu.tsx"
  5179. - file: "packages/ui/src/hooks/usePluginCreator.ts"
  5180. - file: "packages/ui/src/settings/pluginStoreListing.ts"
  5181. - file: "packages/ui/src/settings/pluginSearch.ts"
  5182. - file: "packages/ui/src/settings/PluginStoreListView.tsx"
  5183. - file: "packages/ui/src/settings/pluginCapabilityProjection.ts"
  5184. - file: "apps/zcode-cli/packages/bootstrap/src/app/official-plugin-definitions.ts"
  5185. invariants:
  5186. - "Creator only prefills an unsent draft using the target host official skill path."
  5187. - "Market and User management share the two-item menu; Workspace config adds no marketplace mutations."
  5188. - "Localization joins by complete pluginId; identity and runtime payloads do not change."
  5189. - "Market groups show all cards by default; manual collapse stays local to the current page."
  5190. - id: "capability.bot-group-collaboration"
  5191. kind: "capability"
  5192. label: "Bot group and topic collaboration"
  5193. aliases: ["群聊机器人", "话题续接", "ReplyToChannel", "渠道提及", "Bot 历史附件"]
  5194. docs:
  5195. [
  5196. "docs/bots-feishu-group-collaboration.md",
  5197. "docs/bots-topic-input-materials.md",
  5198. "docs/testing/bots-e2e-coverage-matrix.md",
  5199. ]
  5200. codeSeeds:
  5201. - file: "packages/services/src/bots/botsService.ts"
  5202. symbol: "createBotsService"
  5203. - file: "packages/services/src/bots/channelReply.ts"
  5204. symbol: "replyToBotChannel"
  5205. - file: "packages/services/src/bots/topicContinuation.ts"
  5206. symbol: "createTopicContinuation"
  5207. - id: "surface.bot-bound-groups"
  5208. kind: "ui-surface"
  5209. label: "Bot settings bound group controls"
  5210. codeSeeds:
  5211. - file: "packages/ui/src/BotsDialog/BoundGroupsCard.tsx"
  5212. symbol: "BoundGroupsCard"
  5213. - id: "surface.bot-channel-messages"
  5214. kind: "ui-surface"
  5215. label: "Canonical group input and native mentions"
  5216. codeSeeds:
  5217. - file: "packages/ui/src/v4/ChannelMentionContent.tsx"
  5218. symbol: "ChannelMentionContent"
  5219. - file: "packages/ui/src/v4/BotTopicPreparation.tsx"
  5220. symbol: "BotTopicPreparationList"
  5221. - id: "shared-ui.tool-presentation"
  5222. kind: "shared-ui"
  5223. label: "Common App and share readonly tool presentation"
  5224. aliases: ["WebFetch", "Fetch", "工具公开展示"]
  5225. docs: ["docs/ui/tool-display-rendering.md", "docs/conversation-share-v1.md"]
  5226. codeSeeds:
  5227. - symbol: "ToolPresentation"
  5228. file: "packages/ui/src/ToolCallBlocks/ToolPresentation.tsx"
  5229. - symbol: "resolveToolCallRenderer"
  5230. file: "packages/ui/src/ToolCallBlocks/resolveRenderer.ts"
  5231. - id: "surface.conversation-share-tool-timeline"
  5232. kind: "ui-surface"
  5233. label: "Public and imported readonly tool timeline"
  5234. codeSeeds:
  5235. - symbol: "ConversationShareReadonlyTimeline"
  5236. file: "packages/ui/src/v4/ConversationShareReadonlyTimeline.tsx"
  5237. - id: "capability.plugin-startup-budget"
  5238. kind: "capability"
  5239. label: "Plugin startup timeout without plugin capabilities"
  5240. aliases: ["插件启动预算", "无插件启动", "plugin startup degraded"]
  5241. docs: ["docs/workspace-capability-discovery-cache.md"]
  5242. codeSeeds:
  5243. - file: "apps/zcode-cli/packages/bootstrap/src/app/bundled-plugins.ts"
  5244. symbol: "createOfficialPluginPreparation"
  5245. - file: "packages/services/src/zcode-agent/zcodeAgentService.ts"
  5246. symbol: "onDynamicPluginStartupDegraded"
  5247. - file: "packages/ui/src/v4/composer/useDraftConfigControl.ts"
  5248. symbol: "useDraftConfigControl"
  5249. invariants:
  5250. - "The Agent process owns the shared budget and degraded latch; queries do not rescan or alter enablement after timeout."
  5251. - "Existing Runtime snapshots stay frozen; restart creates a new owner. Desktop and mobile subscribe to the same workspace-scoped notification."
  5252. - "An in-flight directory publication finishes or rolls back before releasing its lock; late results cannot restore capabilities."
  5253. edges:
  5254. - from: "capability.archive-permanent-deletion"
  5255. to: "surface.archive-management"
  5256. type: "implemented-in"
  5257. rank: "must-inspect"
  5258. condition: "Single, group and filtered bulk deletion show delete/retain/blocked lists, then perform physical cleanup through the original owner."
  5259. - from: "capability.archive-permanent-deletion"
  5260. to: "service.project-task-mutation"
  5261. type: "requires-scoped-routing-through"
  5262. rank: "must-inspect"
  5263. condition: "Permanent deletion uses an explicit contract and existing CLI cleanup; ordinary deleteSession and project deletion semantics remain unchanged."
  5264. - from: "capability.shared-task-cli"
  5265. to: "capability.workspace-identity"
  5266. type: "preserves"
  5267. rank: "must-inspect"
  5268. - from: "capability.shared-task-cli"
  5269. to: "capability.session-residency-management"
  5270. type: "shares-process-with"
  5271. rank: "must-inspect"
  5272. - from: "capability.shared-task-cli"
  5273. to: "capability.remote-delivery"
  5274. type: "preserves-shared-host-routing"
  5275. rank: "must-inspect"
  5276. - from: "capability.shared-task-cli"
  5277. to: "service.project-task-mutation"
  5278. type: "retains-runtime-during-move"
  5279. rank: "must-inspect"
  5280. - from: "capability.gen-ui-input-context"
  5281. to: "surface.gen-ui-conversation-input"
  5282. type: "renders-in"
  5283. rank: "must-inspect"
  5284. condition: "The current sendText producer reads widget state before input admission."
  5285. - from: "capability.gen-ui-input-context"
  5286. to: "state.gen-ui-widget-state"
  5287. type: "reads-from"
  5288. rank: "must-inspect"
  5289. - from: "capability.gen-ui-input-context"
  5290. to: "capability.conversation-runtime"
  5291. type: "consumed-by"
  5292. rank: "must-inspect"
  5293. condition: "Ordinary input, queue promotion, guide and cold history must preserve the context associated with the same input."
  5294. - from: "capability.gen-ui-input-context"
  5295. to: "surface.conversation-share-publish"
  5296. type: "projects-through"
  5297. rank: "must-inspect"
  5298. condition: "New share snapshots consume conversation rows; already published static shares do not rerun CLI normalization."
  5299. - from: "capability.tool-search"
  5300. to: "surface.tool-search-card"
  5301. type: "renders-in"
  5302. rank: "must-inspect"
  5303. condition: "Model-visible names can reach the shared card before executor canonicalization, including interrupted parameter streaming."
  5304. - from: "surface.tool-search-card"
  5305. to: "evidence.tool-search-lifecycle"
  5306. type: "verified-by"
  5307. rank: "evidence-only"
  5308. - from: "capability.tool-search"
  5309. to: "surface.tool-search-settings"
  5310. type: "renders-in"
  5311. rank: "must-inspect"
  5312. condition: "Settings supplies the immutable startup policy through the existing Host preference request."
  5313. - from: "capability.tool-search"
  5314. to: "evidence.tool-search-lifecycle"
  5315. type: "verified-by"
  5316. rank: "evidence-only"
  5317. - from: "surface.conversation-model-control"
  5318. to: "state.composer-text-draft"
  5319. type: "commits-to"
  5320. rank: "must-inspect"
  5321. - from: "state.composer-text-draft"
  5322. to: "boundary.workspace-key"
  5323. type: "isolated-by"
  5324. rank: "must-inspect"
  5325. - from: "capability.preview-pane-image-actions"
  5326. to: "service.image-preview-download"
  5327. type: "commits-to"
  5328. rank: "must-inspect"
  5329. - from: "capability.shared-image-preview"
  5330. to: "service.image-preview-download"
  5331. type: "shares-component"
  5332. rank: "must-inspect"
  5333. - from: "capability.preview-pane-image-actions"
  5334. to: "service.workspace-file-draft-reference"
  5335. type: "commits-to"
  5336. rank: "must-inspect"
  5337. - from: "service.workspace-file-draft-reference"
  5338. to: "boundary.workspace-key"
  5339. type: "isolated-by"
  5340. rank: "must-inspect"
  5341. - from: "capability.plugin-market-ui"
  5342. to: "capability.plugin-source-acquisition"
  5343. type: "commits-to"
  5344. rank: "must-inspect"
  5345. condition: "Both marketplace surfaces reuse user-scoped installation, refresh, update and uninstall."
  5346. - from: "capability.plugin-market-ui"
  5347. to: "state.workspace-plugin-effective-config"
  5348. type: "projects-from"
  5349. rank: "must-inspect"
  5350. condition: "Project pause/configuration remain overrides; global defaults and other projects stay isolated."
  5351. - from: "capability.side-pane-scope"
  5352. to: "capability.workspace-identity"
  5353. type: "isolated-by"
  5354. rank: "must-inspect"
  5355. - from: "surface.conversation-tool-call"
  5356. to: "shared-ui.tool-presentation"
  5357. type: "shares-component"
  5358. rank: "must-inspect"
  5359. - from: "surface.conversation-share-tool-timeline"
  5360. to: "shared-ui.tool-presentation"
  5361. type: "shares-component"
  5362. rank: "must-inspect"
  5363. condition: "Public snapshots and product default grouping; no runtime authority or interactive plugin UI."
  5364. - from: "capability.permission-full-access"
  5365. to: "surface.permission-full-access"
  5366. type: "renders-in"
  5367. rank: "must-inspect"
  5368. condition: "Only explicit fullAccessOption capability; preserve each Plan, project defaults and ordinary Composer menu isolation."
  5369. - from: "capability.plugin-creator-entry"
  5370. to: "surface.workspace-plugin-scope-controls"
  5371. type: "exposed-through"
  5372. rank: "must-inspect"
  5373. - from: "capability.plugin-creator-entry"
  5374. to: "surface.plugin-store-example-prompt-try"
  5375. type: "shares-new-task-prefill"
  5376. rank: "must-inspect"
  5377. - from: "capability.plugin-creator-entry"
  5378. to: "capability.workspace-identity"
  5379. type: "isolated-by"
  5380. rank: "must-inspect"
  5381. - from: "capability.plugin-creator-entry"
  5382. to: "boundary.plugin-agent-host"
  5383. type: "resolves-skill-from-target"
  5384. rank: "must-inspect"
  5385. - from: "capability.agent-plugin-discovery"
  5386. to: "service.plugin-catalog-detail"
  5387. type: "options-from"
  5388. rank: "must-inspect"
  5389. - from: "capability.agent-plugin-discovery"
  5390. to: "persistence.plugin-marketplace-installed-cache"
  5391. type: "persists-to"
  5392. rank: "must-inspect"
  5393. - from: "capability.agent-plugin-discovery"
  5394. to: "boundary.web-remote-replayable"
  5395. type: "recovers-via"
  5396. rank: "must-inspect"
  5397. - from: "capability.agent-plugin-discovery"
  5398. to: "state.plugin-reference-session-catalog"
  5399. type: "must-not-mutate"
  5400. rank: "invariant-only"
  5401. - from: "capability.plugin-store-mode-order"
  5402. to: "state.interface-mode"
  5403. type: "selects-order-from"
  5404. rank: "must-inspect"
  5405. - from: "capability.marketing-touch"
  5406. to: "capability.referrals-embedded"
  5407. type: "navigates-through-window-provider"
  5408. rank: "must-inspect"
  5409. condition: "navigate page=rewards preserves login continuation and single confirm reporting."
  5410. - from: "capability.interface-mode"
  5411. to: "state.interface-mode"
  5412. type: "configured-by"
  5413. rank: "must-inspect"
  5414. - from: "state.interface-mode"
  5415. to: "surface.interface-mode-panels"
  5416. type: "filters-creation-without-closing-existing"
  5417. rank: "must-inspect"
  5418. - from: "state.interface-mode"
  5419. to: "state.conversation-projection"
  5420. type: "filters-rendering-without-mutating"
  5421. rank: "must-inspect"
  5422. - from: "state.interface-mode"
  5423. to: "boundary.desktop-continuous"
  5424. type: "must-not-change-delivery-semantics"
  5425. rank: "invariant-only"
  5426. - from: "state.interface-mode"
  5427. to: "boundary.web-remote-replayable"
  5428. type: "must-not-change-recovery-semantics"
  5429. rank: "invariant-only"
  5430. - from: "capability.dangerous-command-approval"
  5431. to: "surface.parent-task-blocking-interaction"
  5432. type: "requires-direct-approval-in"
  5433. rank: "must-inspect"
  5434. - from: "capability.dangerous-command-approval"
  5435. to: "boundary.desktop-continuous"
  5436. type: "preserves-delivery-boundary"
  5437. rank: "invariant-only"
  5438. - from: "capability.dangerous-command-approval"
  5439. to: "boundary.web-remote-replayable"
  5440. type: "preserves-delivery-boundary"
  5441. rank: "invariant-only"
  5442. - from: "capability.dangerous-command-approval"
  5443. to: "boundary.workspace-key"
  5444. type: "preserves-identity-isolation"
  5445. rank: "invariant-only"
  5446. - from: "capability.referrals-embedded"
  5447. to: "state.coding-plan-purchase-funnel"
  5448. type: "shares-presentation-only"
  5449. rank: "should-inspect"
  5450. condition: "Shared navigation header must preserve Coding Plan callbacks and purchase behavior."
  5451. - from: "capability.referrals-embedded"
  5452. to: "boundary.web-remote-replayable"
  5453. type: "must-not-change-recovery-semantics"
  5454. rank: "invariant-only"
  5455. - from: "capability.marketing-touch"
  5456. to: "state.marketing-touch-controller"
  5457. type: "owned-by"
  5458. rank: "must-inspect"
  5459. - from: "state.marketing-touch-controller"
  5460. to: "service.marketing-touch"
  5461. type: "queries-and-reports-through"
  5462. rank: "must-inspect"
  5463. - from: "capability.marketing-touch"
  5464. to: "boundary.desktop-continuous"
  5465. type: "must-not-change-delivery-semantics"
  5466. rank: "invariant-only"
  5467. - from: "capability.marketing-touch"
  5468. to: "boundary.web-remote-replayable"
  5469. type: "must-not-change-recovery-semantics"
  5470. rank: "invariant-only"
  5471. - from: "capability.delete-all-archived-tasks"
  5472. to: "surface.desktop-archived-tasks"
  5473. type: "renders-in"
  5474. rank: "must-inspect"
  5475. - from: "capability.delete-all-archived-tasks"
  5476. to: "surface.web-archived-tasks"
  5477. type: "renders-in"
  5478. rank: "must-inspect"
  5479. - from: "capability.delete-all-archived-tasks"
  5480. to: "capability.task-persistence"
  5481. type: "commits-to"
  5482. rank: "must-inspect"
  5483. - from: "surface.message-stream-reasoning-setting"
  5484. to: "persistence.app-settings"
  5485. type: "persists-to"
  5486. rank: "must-inspect"
  5487. - from: "persistence.app-settings"
  5488. to: "state.conversation-reasoning-visibility"
  5489. type: "projects-renderer-preference-to"
  5490. rank: "must-inspect"
  5491. condition: "A missing migration marker forces true exactly once; after the marker is persisted, the stored boolean is authoritative."
  5492. - from: "state.conversation-reasoning-visibility"
  5493. to: "state.conversation-projection"
  5494. type: "filters-rendering-without-mutating"
  5495. rank: "must-inspect"
  5496. condition: "The resolved preference hides only later reasoning rows when false; the first reasoning row stays visible and canonical projection is unchanged."
  5497. - from: "state.conversation-reasoning-visibility"
  5498. to: "boundary.desktop-continuous"
  5499. type: "must-not-change-delivery-semantics"
  5500. rank: "invariant-only"
  5501. - from: "state.conversation-reasoning-visibility"
  5502. to: "boundary.web-remote-replayable"
  5503. type: "must-not-change-recovery-semantics"
  5504. rank: "invariant-only"
  5505. - from: "capability.hooks-settings"
  5506. to: "surface.hooks-settings"
  5507. type: "renders-in"
  5508. rank: "must-inspect"
  5509. - from: "surface.hooks-settings"
  5510. to: "state.hooks-settings-store"
  5511. type: "reads-and-commits-through"
  5512. rank: "must-inspect"
  5513. - from: "state.hooks-settings-store"
  5514. to: "persistence.hooks-config-files"
  5515. type: "persists-to"
  5516. rank: "must-inspect"
  5517. condition: "workspaceIdentity?.trim() || workspacePath isolates state; workspacePath selects the file target."
  5518. - from: "capability.hooks-settings"
  5519. to: "capability.agent-core-runtime"
  5520. type: "must-preserve-runtime-contract"
  5521. rank: "invariant-only"
  5522. condition: "Workspace hooks remain editable but are excluded from runtime; enabled plugin hooks remain runtime-owned snapshots."
  5523. - from: "capability.customize-capability-search"
  5524. to: "surface.customize-capability-settings"
  5525. type: "renders-in"
  5526. rank: "must-inspect"
  5527. - from: "surface.customize-capability-settings"
  5528. to: "state.customize-tab-search-query"
  5529. type: "owns-draft"
  5530. rank: "must-inspect"
  5531. condition: "Each capability tab retains its own query; scope changes filter the newly selected isolated scope without sharing resources across workspace identities."
  5532. - from: "capability.customize-capability-search"
  5533. to: "evidence.customize-capability-settings-tests"
  5534. type: "covered-by"
  5535. rank: "evidence-only"
  5536. - from: "capability.command-workspace-scope"
  5537. to: "surface.command-settings-editor"
  5538. type: "renders-in"
  5539. rank: "must-inspect"
  5540. - from: "surface.command-settings-editor"
  5541. to: "shared-ui.customize-scope-menu"
  5542. type: "shares-component"
  5543. rank: "must-inspect"
  5544. - from: "surface.command-settings-editor"
  5545. to: "state.command-form-scope-key"
  5546. type: "owns-draft"
  5547. rank: "must-inspect"
  5548. condition: "A new form defaults to User; editing retains a locked owner scope and never migrates storage."
  5549. - from: "state.command-form-scope-key"
  5550. to: "boundary.workspace-key"
  5551. type: "isolated-by"
  5552. rank: "must-inspect"
  5553. condition: "Workspace options use workspaceIdentity?.trim() || workspacePath; file IO continues to use workspacePath."
  5554. - from: "surface.command-settings-editor"
  5555. to: "service.workspace-commands"
  5556. type: "commits-to"
  5557. rank: "must-inspect"
  5558. condition: "A concrete Workspace selection resolves that tab's local or remote Host service before writing."
  5559. - from: "service.workspace-commands"
  5560. to: "persistence.command-settings-directories"
  5561. type: "persists-to"
  5562. rank: "must-inspect"
  5563. - from: "capability.command-workspace-scope"
  5564. to: "surface.customize-capability-settings"
  5565. type: "shares-scope-option-contract-with"
  5566. rank: "should-inspect"
  5567. condition: "Commands reuse the concrete User and open-Workspace option contract without joining Plugin list state."
  5568. - from: "capability.command-workspace-scope"
  5569. to: "evidence.command-workspace-scope-tests"
  5570. type: "covered-by"
  5571. rank: "evidence-only"
  5572. - from: "capability.browser-use-plugin-distribution"
  5573. to: "capability.build-release-engineering"
  5574. type: "packaged-and-versioned-by"
  5575. rank: "must-inspect"
  5576. - from: "capability.browser-use-plugin-distribution"
  5577. to: "capability.agent-core-runtime"
  5578. type: "seeds-runtime-assets-for"
  5579. rank: "must-inspect"
  5580. - from: "capability.browser-use-plugin-distribution"
  5581. to: "evidence.browser-use-plugin-distribution-tests"
  5582. type: "covered-by"
  5583. rank: "evidence-only"
  5584. - from: "capability.browser-use-plugin-distribution"
  5585. to: "boundary.desktop-continuous"
  5586. type: "must-not-change-delivery"
  5587. rank: "invariant-only"
  5588. - from: "capability.browser-use-plugin-distribution"
  5589. to: "boundary.web-remote-replayable"
  5590. type: "must-not-change-delivery"
  5591. rank: "invariant-only"
  5592. - from: "capability.browser-use-agent-guidance"
  5593. to: "capability.agent-core-runtime"
  5594. type: "guides-tool-planning-in"
  5595. rank: "must-inspect"
  5596. - from: "capability.browser-use-agent-guidance"
  5597. to: "evidence.browser-use-agent-guidance-tests"
  5598. type: "covered-by"
  5599. rank: "evidence-only"
  5600. - from: "capability.browser-use-agent-guidance"
  5601. to: "boundary.desktop-continuous"
  5602. type: "must-not-change-delivery"
  5603. rank: "invariant-only"
  5604. - from: "capability.browser-use-agent-guidance"
  5605. to: "boundary.web-remote-replayable"
  5606. type: "must-not-change-delivery"
  5607. rank: "invariant-only"
  5608. - from: "capability.windows-window-chrome"
  5609. to: "surface.workspace-shell-window-edge"
  5610. type: "renders-in"
  5611. rank: "must-inspect"
  5612. - from: "surface.workspace-shell-window-edge"
  5613. to: "state.desktop-window-chrome"
  5614. type: "projects-from"
  5615. rank: "must-inspect"
  5616. - from: "capability.windows-window-chrome"
  5617. to: "boundary.desktop-continuous"
  5618. type: "must-not-change-delivery"
  5619. rank: "invariant-only"
  5620. - from: "capability.assistant-file-preview-links"
  5621. to: "surface.conversation-assistant-file-preview"
  5622. type: "renders-in"
  5623. rank: "must-inspect"
  5624. - from: "surface.conversation-assistant-file-preview"
  5625. to: "state.assistant-file-preview-projection"
  5626. type: "projects-from"
  5627. rank: "must-inspect"
  5628. condition: "Cards derive from terminal assistant text plus current-turn fileChanges; SessionPane shares a bounded in-flight/result query cache above virtualized rows, and terminal cache identity includes the authoritative active/reverted fileChanges state so rewind cannot reuse pre-rewind results. Assistant body text keeps the existing Streamdown behavior and does not auto-link plain file-name mentions."
  5629. - from: "state.assistant-file-preview-projection"
  5630. to: "service.workspace-file-existence-check"
  5631. type: "validates-through"
  5632. rank: "must-inspect"
  5633. condition: "Workspace-relative references are lexically normalized and rejected if they escape the workspace before Host I/O; only the first 15 reverse-occurrence candidates are checked, and at most 10 valid cards render."
  5634. - from: "service.workspace-file-existence-check"
  5635. to: "boundary.workspace-key"
  5636. type: "isolated-by"
  5637. rank: "must-inspect"
  5638. condition: "useWorkspaceServices selects the local or remote Host file service; workspacePath remains the file execution path."
  5639. - from: "surface.conversation-assistant-file-preview"
  5640. to: "surface.preview-pane-office-file"
  5641. type: "opens-in"
  5642. rank: "must-inspect"
  5643. - from: "state.assistant-file-preview-projection"
  5644. to: "boundary.desktop-continuous"
  5645. type: "must-not-change-delivery-semantics"
  5646. rank: "invariant-only"
  5647. - from: "state.assistant-file-preview-projection"
  5648. to: "boundary.web-remote-replayable"
  5649. type: "must-not-change-recovery-semantics"
  5650. rank: "invariant-only"
  5651. - from: "capability.workspace-file-tree"
  5652. to: "surface.workspace-file-tree-panel"
  5653. type: "renders-in"
  5654. rank: "must-inspect"
  5655. - from: "surface.workspace-file-tree-panel"
  5656. to: "state.workspace-file-tree-projection"
  5657. type: "projects-from"
  5658. rank: "must-inspect"
  5659. - from: "capability.workspace-file-tree"
  5660. to: "evidence.workspace-file-tree-e2e"
  5661. type: "covered-by"
  5662. rank: "evidence-only"
  5663. - from: "capability.office-file-preview"
  5664. to: "surface.preview-pane-office-file"
  5665. type: "renders-in"
  5666. rank: "must-inspect"
  5667. - from: "surface.preview-pane-office-file"
  5668. to: "state.preview-pane-office-render"
  5669. type: "owns-local-render-lifecycle"
  5670. rank: "must-inspect"
  5671. condition: "DOCX rendering is local to the active Preview Pane and stale asynchronous results must not replace a newer source."
  5672. - from: "surface.preview-pane-office-file"
  5673. to: "service.workspace-file-binary-preview"
  5674. type: "reads-through"
  5675. rank: "must-inspect"
  5676. - from: "service.workspace-file-binary-preview"
  5677. to: "boundary.workspace-key"
  5678. type: "isolated-by"
  5679. rank: "must-inspect"
  5680. condition: "The selected workspace service owns file reads; workspacePath remains the execution path."
  5681. - from: "state.preview-pane-office-render"
  5682. to: "boundary.desktop-continuous"
  5683. type: "must-remain-isolated-from"
  5684. rank: "invariant-only"
  5685. - from: "state.preview-pane-office-render"
  5686. to: "boundary.web-remote-replayable"
  5687. type: "must-remain-isolated-from"
  5688. rank: "invariant-only"
  5689. - from: "capability.side-pane-tab-strip"
  5690. to: "surface.workspace-side-pane-tab-strip"
  5691. type: "renders-in"
  5692. rank: "must-inspect"
  5693. - from: "surface.workspace-side-pane-tab-strip"
  5694. to: "boundary.desktop-continuous"
  5695. type: "must-not-change-delivery"
  5696. rank: "invariant-only"
  5697. - from: "surface.workspace-side-pane-tab-strip"
  5698. to: "boundary.web-remote-replayable"
  5699. type: "must-not-change-recovery"
  5700. rank: "invariant-only"
  5701. - from: "capability.markdown-image-gallery"
  5702. to: "capability.shared-image-preview"
  5703. type: "shares-component"
  5704. rank: "must-inspect"
  5705. - from: "capability.shared-image-preview"
  5706. to: "capability.conversation-runtime"
  5707. type: "renders-in"
  5708. rank: "must-inspect"
  5709. condition: "Markdown and Browser Use / node_repl images render inside conversation rows."
  5710. - from: "capability.shared-image-preview"
  5711. to: "boundary.desktop-continuous"
  5712. type: "must-not-change-delivery"
  5713. rank: "invariant-only"
  5714. - from: "capability.shared-image-preview"
  5715. to: "boundary.web-remote-replayable"
  5716. type: "must-not-change-delivery"
  5717. rank: "invariant-only"
  5718. - from: "capability.markdown-image-gallery"
  5719. to: "capability.conversation-runtime"
  5720. type: "renders-in"
  5721. rank: "must-inspect"
  5722. condition: "Assistant conversation rows render Markdown through the shared MessageResponse component."
  5723. - from: "capability.markdown-image-gallery"
  5724. to: "boundary.desktop-continuous"
  5725. type: "must-not-change-delivery"
  5726. rank: "invariant-only"
  5727. - from: "capability.markdown-image-gallery"
  5728. to: "boundary.web-remote-replayable"
  5729. type: "must-not-change-delivery"
  5730. rank: "invariant-only"
  5731. - from: "capability.embedded-browser-network-policy"
  5732. to: "surface.desktop-network-policy-setting"
  5733. type: "configured-in"
  5734. rank: "must-inspect"
  5735. - from: "surface.desktop-network-policy-setting"
  5736. to: "persistence.app-settings"
  5737. type: "persists-explicit-network-policy-to"
  5738. rank: "must-inspect"
  5739. - from: "capability.embedded-browser-network-policy"
  5740. to: "service.desktop-chromium-network-policy"
  5741. type: "implemented-by"
  5742. rank: "must-inspect"
  5743. - from: "service.desktop-chromium-network-policy"
  5744. to: "surface.browser-use-side-pane-guest"
  5745. type: "configures-electron-session-for"
  5746. rank: "must-inspect"
  5747. condition: "Desktop startup applies the explicit proxy, No Proxy, and custom CA policy independently to defaultSession and persist:zcode-embedded-browser; persist:zcode-coding-plan and other dedicated partitions remain isolated."
  5748. - from: "service.desktop-chromium-network-policy"
  5749. to: "boundary.desktop-continuous"
  5750. type: "owned-locally-by"
  5751. rank: "must-inspect"
  5752. - from: "service.desktop-chromium-network-policy"
  5753. to: "boundary.web-remote-replayable"
  5754. type: "must-not-add-recovery-state-to"
  5755. rank: "invariant-only"
  5756. condition: "The Electron Session policy affects the existing shared desktop guest only; it adds no relay, task snapshot, or mobile replayable state."
  5757. - from: "capability.embedded-browser-network-policy"
  5758. to: "evidence.embedded-browser-network-policy-tests"
  5759. type: "covered-by"
  5760. rank: "evidence-only"
  5761. - from: "capability.host-api-network-policy"
  5762. to: "surface.desktop-network-policy-setting"
  5763. type: "configured-in"
  5764. rank: "must-inspect"
  5765. condition: "AppSettings httpProxy, httpProxyNoProxy, and httpProxyCaCertPath remain the only explicit desktop authority and take effect for Host API egress on the next Window Host lifecycle."
  5766. - from: "surface.desktop-network-policy-setting"
  5767. to: "service.host-api-network-policy"
  5768. type: "supplies-lifecycle-snapshot-to"
  5769. rank: "must-inspect"
  5770. - from: "capability.host-api-network-policy"
  5771. to: "service.host-api-network-policy"
  5772. type: "implemented-by"
  5773. rank: "must-inspect"
  5774. - from: "service.host-api-network-policy"
  5775. to: "service.oauth"
  5776. type: "injects-node-api-client-transport-for"
  5777. rank: "must-inspect"
  5778. condition: "OAuth token and user-info requests use the final rewritten URL for No Proxy selection and fail closed when an explicit proxy or custom CA is invalid."
  5779. - from: "service.host-api-network-policy"
  5780. to: "service.model-provider"
  5781. type: "injects-node-api-client-transport-for"
  5782. rank: "must-inspect"
  5783. condition: "Preset provider refresh, endpoint configuration, billing, and connectivity requests that already use NodeApiClient follow the same Host lifecycle policy; Agent model transport remains separate."
  5784. - from: "service.host-api-network-policy"
  5785. to: "service.plan-entitlements"
  5786. type: "injects-node-api-client-transport-for"
  5787. rank: "must-inspect"
  5788. condition: "Host-owned Coding Plan subscription and usage requests follow the explicit desktop policy without moving plan authority into relay, main, or remote Agent state."
  5789. - from: "service.host-api-network-policy"
  5790. to: "service.client-scenes"
  5791. type: "injects-node-api-client-transport-for"
  5792. rank: "must-inspect"
  5793. condition: "Client scenes keeps its current service/cache authority; only the Host HTTP transport changes."
  5794. - from: "service.host-api-network-policy"
  5795. to: "boundary.desktop-continuous"
  5796. type: "must-not-change-delivery"
  5797. rank: "invariant-only"
  5798. - from: "service.host-api-network-policy"
  5799. to: "boundary.web-remote-replayable"
  5800. type: "must-not-add-recovery-state-to"
  5801. rank: "invariant-only"
  5802. condition: "Mobile remote reuses the existing shared-host attachment; proxy policy adds no relay, snapshot, queue, owner, or replay state."
  5803. - from: "capability.host-api-network-policy"
  5804. to: "evidence.host-api-network-policy-tests"
  5805. type: "covered-by"
  5806. rank: "evidence-only"
  5807. - from: "capability.browser-screenshot-surface"
  5808. to: "surface.browser-use-side-pane-guest"
  5809. type: "composes-guest-in"
  5810. rank: "must-inspect"
  5811. - from: "surface.browser-use-side-pane-guest"
  5812. to: "state.browser-screenshot-surface-coordination"
  5813. type: "prepared-and-released-by"
  5814. rank: "must-inspect"
  5815. - from: "capability.browser-screenshot-surface"
  5816. to: "state.browser-screenshot-surface-coordination"
  5817. type: "coordinated-by"
  5818. rank: "must-inspect"
  5819. - from: "state.browser-screenshot-surface-coordination"
  5820. to: "service.desktop-browser-screenshot-activity"
  5821. type: "temporarily-wakes-owner-renderer-and-target-guest-through"
  5822. rank: "must-inspect"
  5823. condition: "Only the active screenshot preparation group holds a bounded, event-loop-fair activity lease for its owner renderer and target guest; each continuous pump turn yields a macrotask so IPC, timeout, cancellation, and lifecycle events remain schedulable, while sibling guests, queued groups, and persistent tabs remain background-throttled."
  5824. - from: "service.desktop-browser-screenshot-activity"
  5825. to: "boundary.desktop-continuous"
  5826. type: "owned-locally-by"
  5827. rank: "must-inspect"
  5828. - from: "service.desktop-browser-screenshot-activity"
  5829. to: "boundary.web-remote-replayable"
  5830. type: "must-remain-isolated-from"
  5831. rank: "invariant-only"
  5832. condition: "Screenshot activity is transient Electron main state and never enters relay, task snapshots, or mobile recovery."
  5833. - from: "capability.browser-screenshot-surface"
  5834. to: "boundary.workspace-key"
  5835. type: "preserves-existing-scope"
  5836. rank: "invariant-only"
  5837. - from: "capability.browser-screenshot-surface"
  5838. to: "evidence.browser-screenshot-surface-tests"
  5839. type: "covered-by"
  5840. rank: "evidence-only"
  5841. - from: "capability.browser-webview-video-recording"
  5842. to: "surface.browser-use-side-pane-guest"
  5843. type: "records-guest-from"
  5844. rank: "must-inspect"
  5845. condition: "Recording captures the already-authorized IAB guest and runs its restricted action DSL through trusted CDP input; it never launches an independent Chromium runtime."
  5846. - from: "capability.browser-webview-video-recording"
  5847. to: "state.browser-recording-job-registry"
  5848. type: "owned-transiently-by"
  5849. rank: "must-inspect"
  5850. condition: "Jobs are scoped by browser generation, window, workspaceKey, remoteSessionId, session, clientMode and tab; recording ids are correlation handles, not authorization."
  5851. - from: "state.browser-recording-job-registry"
  5852. to: "state.browser-screenshot-surface-coordination"
  5853. type: "holds-bounded-capture-lease-through"
  5854. rank: "must-inspect"
  5855. condition: "Preparing and capturing hold the target guest's background surface so hidden side panes keep producing screencast frames; every terminal path releases the lease."
  5856. - from: "capability.browser-webview-video-recording"
  5857. to: "capability.stateless-browser-use-mcp"
  5858. type: "exposed-to-plugins-through"
  5859. rank: "must-inspect"
  5860. condition: "Third-party plugins call the official Tab recording facade from fresh node_repl kernels; no plugin manifest can claim raw CDP or Electron authority."
  5861. - from: "state.browser-recording-job-registry"
  5862. to: "boundary.workspace-key"
  5863. type: "isolated-by"
  5864. rank: "must-inspect"
  5865. condition: "Every status and cancel request rechecks workspaceIdentity?.trim() || workspacePath, remoteSessionId, session, browser generation, clientMode and tab ownership."
  5866. - from: "capability.browser-webview-video-recording"
  5867. to: "boundary.desktop-continuous"
  5868. type: "executes-locally-without-changing-delivery"
  5869. rank: "must-inspect"
  5870. - from: "capability.browser-webview-video-recording"
  5871. to: "boundary.web-remote-replayable"
  5872. type: "must-not-enter-replayable-state"
  5873. rank: "invariant-only"
  5874. condition: "Mobile remote may call the shared-host BrowserControl RPC, but recording jobs and frame/artifact state never enter relay, task snapshots, replay queues or a second mobile runtime."
  5875. - from: "capability.browser-webview-video-recording"
  5876. to: "evidence.browser-webview-video-recording-tests"
  5877. type: "covered-by"
  5878. rank: "evidence-only"
  5879. - from: "capability.embedded-browser-responsive-viewport"
  5880. to: "surface.browser-use-side-pane-guest"
  5881. type: "renders-in"
  5882. rank: "must-inspect"
  5883. condition: "Agent Browser Use reuses the viewport renderer but never reads or writes the human presentation preference."
  5884. - from: "capability.embedded-browser-responsive-viewport"
  5885. to: "surface.human-browser-side-pane-guest"
  5886. type: "renders-in"
  5887. rank: "must-inspect"
  5888. - from: "surface.human-browser-side-pane-guest"
  5889. to: "state.embedded-browser-human-viewport-preference"
  5890. type: "initializes-once-from-and-commits-human-actions-to"
  5891. rank: "must-inspect"
  5892. condition: "Each new human Browser tab consumes normal/responsive mode, last valid viewport, and preview zoom once; mounted tabs keep tab-local runtime state after setting broadcasts."
  5893. - from: "state.embedded-browser-human-viewport-preference"
  5894. to: "persistence.app-settings"
  5895. type: "persists-to"
  5896. rank: "must-inspect"
  5897. condition: "Only presentation preference is persisted; Browser tab shells, URLs, history, pageState, guest identity, and Agent viewport runtime are excluded."
  5898. - from: "state.embedded-browser-human-viewport-preference"
  5899. to: "surface.browser-use-side-pane-guest"
  5900. type: "must-remain-isolated-from"
  5901. rank: "must-inspect"
  5902. condition: "Agent-created tabs, claim, navigate, viewport set/reset, and renderer viewport events neither inherit nor mutate the human preference; Agent creation remains 1280x720 Fit."
  5903. - from: "state.embedded-browser-human-viewport-preference"
  5904. to: "boundary.desktop-continuous"
  5905. type: "owned-as-app-setting-outside-task-delivery"
  5906. rank: "must-inspect"
  5907. - from: "state.embedded-browser-human-viewport-preference"
  5908. to: "boundary.web-remote-replayable"
  5909. type: "must-remain-isolated-from"
  5910. rank: "invariant-only"
  5911. condition: "The preference never enters task stream, snapshot, replay, relay, owner queue, or mobile recovery state."
  5912. - from: "surface.browser-use-side-pane-guest"
  5913. to: "state.embedded-browser-resize-gesture"
  5914. type: "owns-local-pointer-lifecycle"
  5915. rank: "must-inspect"
  5916. condition: "Pointer up, cancel, lost capture, window blur, mode exit, and unmount must end the renderer-local drag; refocus never resumes it without a new pointerdown."
  5917. - from: "state.embedded-browser-resize-gesture"
  5918. to: "boundary.desktop-continuous"
  5919. type: "owned-locally-by"
  5920. rank: "must-inspect"
  5921. - from: "state.embedded-browser-resize-gesture"
  5922. to: "boundary.web-remote-replayable"
  5923. type: "must-remain-isolated-from"
  5924. rank: "invariant-only"
  5925. condition: "The pointer gesture is renderer-local UI state and never enters task snapshots, replay, relay, or mobile recovery."
  5926. - from: "surface.browser-use-side-pane-guest"
  5927. to: "state.embedded-browser-fit-presentation"
  5928. type: "owns-local-fit-presentation"
  5929. rank: "must-inspect"
  5930. condition: "Only positive composed canvas measurements are authoritative; display:none 0x0 samples preserve the last valid Fit scale, and a newly composed tab is remeasured before its first visible paint."
  5931. - from: "state.embedded-browser-fit-presentation"
  5932. to: "boundary.desktop-continuous"
  5933. type: "owned-locally-by"
  5934. rank: "must-inspect"
  5935. - from: "state.embedded-browser-fit-presentation"
  5936. to: "boundary.web-remote-replayable"
  5937. type: "must-remain-isolated-from"
  5938. rank: "invariant-only"
  5939. condition: "Fit canvas measurement is renderer-local presentation state and never enters task snapshots, replay, relay, mobile recovery, guest viewport commands, or tab ownership."
  5940. - from: "state.embedded-browser-fit-presentation"
  5941. to: "evidence.embedded-browser-responsive-viewport-tests"
  5942. type: "covered-by"
  5943. rank: "evidence-only"
  5944. - from: "capability.embedded-browser-responsive-viewport"
  5945. to: "evidence.embedded-browser-responsive-viewport-tests"
  5946. type: "covered-by"
  5947. rank: "evidence-only"
  5948. - from: "capability.browser-tab-residency"
  5949. to: "surface.browser-tab-shell"
  5950. type: "renders-logical-tabs-in"
  5951. rank: "must-inspect"
  5952. - from: "capability.automations"
  5953. to: "surface.browser-use-side-pane-guest"
  5954. type: "may-trigger-background-guest-while"
  5955. rank: "must-inspect"
  5956. condition: "Immediate and scheduled automation runs may create Browser Use tabs while the Automations main view remains visible; the Desktop Side Pane host stays mounted but collapsed, completes guest attach without stealing focus, and adds no mobile replayable state or second BrowserWindow."
  5957. - from: "surface.browser-tab-shell"
  5958. to: "state.browser-tab-residency"
  5959. type: "projects-and-reports"
  5960. rank: "must-inspect"
  5961. - from: "state.browser-tab-residency"
  5962. to: "service.desktop-browser-tab-residency"
  5963. type: "scheduled-by"
  5964. rank: "must-inspect"
  5965. condition: "Each BrowserWindow keeps at most 32 process-local logical Browser/Browser Use tabs; the oldest safe candidate is fully closed, and complete app restart begins with an empty tab catalog."
  5966. - from: "service.desktop-browser-tab-residency"
  5967. to: "persistence.browser-tab-recovery-store"
  5968. type: "must-remain-disconnected-from"
  5969. rank: "invariant-only"
  5970. condition: "Desktop main no longer injects, reads, or appends the legacy recovery repository; Browser tabs are never restored across complete app restart."
  5971. - from: "service.desktop-browser-tab-residency"
  5972. to: "capability.desktop-app-shutdown"
  5973. type: "ends-all-tabs-with"
  5974. rank: "must-inspect"
  5975. condition: "Normal quit, update-install quit, and the next packaged or development process do not persist or restore Browser tab shells, URLs, history, or pageState."
  5976. - from: "service.desktop-browser-tab-residency"
  5977. to: "service.desktop-browser-screenshot-activity"
  5978. type: "honors-protection-lease-from"
  5979. rank: "must-inspect"
  5980. condition: "A Browser screenshot/capture target cannot be automatically closed until the bounded activity and screenshot surface leases truly release."
  5981. - from: "service.desktop-browser-tab-residency"
  5982. to: "boundary.desktop-continuous"
  5983. type: "owned-locally-by"
  5984. rank: "must-inspect"
  5985. - from: "service.desktop-browser-tab-residency"
  5986. to: "boundary.web-remote-replayable"
  5987. type: "must-remain-isolated-from"
  5988. rank: "invariant-only"
  5989. condition: "Residency, pageState, guest generations, and renderer budgets remain Electron-local and never enter relay or mobile task snapshots."
  5990. - from: "service.desktop-browser-tab-residency"
  5991. to: "boundary.workspace-key"
  5992. type: "isolates-logical-tabs-and-snapshots-by"
  5993. rank: "must-inspect"
  5994. condition: "Remote scopes additionally preserve remoteSessionId; physical BrowserWindow budget sharing never permits logical state sharing."
  5995. - from: "capability.browser-tab-residency"
  5996. to: "evidence.browser-tab-residency-tests"
  5997. type: "covered-by"
  5998. rank: "evidence-only"
  5999. - from: "capability.browser-tab-residency"
  6000. to: "boundary.local-development-runtime"
  6001. type: "clears-on-process-restart-in"
  6002. rank: "must-inspect"
  6003. - from: "capability.browser-tab-residency"
  6004. to: "boundary.packaged-desktop-runtime"
  6005. type: "clears-on-process-restart-in"
  6006. rank: "must-inspect"
  6007. - from: "capability.provider-endpoint-routing"
  6008. to: "service.provider-endpoint-routing"
  6009. type: "implemented-by"
  6010. rank: "must-inspect"
  6011. - from: "service.provider-endpoint-routing"
  6012. to: "state.provider-endpoint-routing-snapshot"
  6013. type: "owns-lazy-cache"
  6014. rank: "must-inspect"
  6015. condition: "The registry shares a port by endpoint and network policy. Dynamic implementations refresh stale snapshots with coalesced GETs; static implementations do no configuration IO. Neither persists routing state."
  6016. - from: "service.provider-endpoint-routing"
  6017. to: "boundary.zcode-cli-provider-transport"
  6018. type: "rewrites-endpoint-for"
  6019. rank: "must-inspect"
  6020. condition: "Only default AI SDK provider fetches are rewritten before proxy/no-proxy resolution."
  6021. - from: "boundary.zcode-cli-provider-transport"
  6022. to: "service.provider-endpoint-routing"
  6023. type: "supplies-x-api-key-id-on-stale-refresh"
  6024. rank: "must-inspect"
  6025. condition: "For dynamic implementations, only account requestAuth.apiKeyId may cross into a stale agent/configs GET as x-api-key-id; manual keys, PAT, Authorization and model headers remain isolated. Static implementations do not request configuration. The ID is not logged or persisted by routing."
  6026. - from: "capability.provider-registry"
  6027. to: "boundary.zcode-cli-provider-transport"
  6028. type: "creates"
  6029. rank: "must-inspect"
  6030. - from: "boundary.zcode-cli-provider-transport"
  6031. to: "boundary.desktop-continuous"
  6032. type: "must-not-change-delivery-semantics"
  6033. rank: "invariant-only"
  6034. - from: "boundary.zcode-cli-provider-transport"
  6035. to: "boundary.web-remote-replayable"
  6036. type: "must-not-change-recovery-semantics"
  6037. rank: "invariant-only"
  6038. - from: "capability.agent-core-runtime"
  6039. to: "capability.conversation-runtime"
  6040. type: "executes-authoritative-turns-for"
  6041. rank: "must-inspect"
  6042. condition: "Conversation commands, queue state, and projection are owned by the CLI runtime rather than Renderer or Host."
  6043. - from: "capability.agent-core-runtime"
  6044. to: "capability.model-capabilities"
  6045. type: "consumes-runtime-capabilities-from"
  6046. rank: "must-inspect"
  6047. - from: "capability.read-pdf"
  6048. to: "capability.model-capabilities"
  6049. type: "conditions-tool-shape-and-media-branch-on"
  6050. rank: "must-inspect"
  6051. condition: "supportsPdf controls native PDF/schema exposure; supportsImages independently gates pages rendering."
  6052. - from: "capability.read-pdf"
  6053. to: "capability.agent-core-runtime"
  6054. type: "executes-through"
  6055. rank: "must-inspect"
  6056. condition: "Main, subagent, project-memory and workflow runtimes share the injected PdfDocumentPort."
  6057. - from: "capability.read-pdf"
  6058. to: "boundary.zcode-cli-provider-transport"
  6059. type: "projects-ordered-tool-media-through"
  6060. rank: "must-inspect"
  6061. condition: "Anthropic and Responses keep structured tool media; Chat keeps summary in tool output and ordered images in one following user message."
  6062. - from: "capability.read-pdf"
  6063. to: "boundary.desktop-continuous"
  6064. type: "must-not-change-delivery-semantics"
  6065. rank: "invariant-only"
  6066. - from: "capability.read-pdf"
  6067. to: "boundary.web-remote-replayable"
  6068. type: "must-not-change-recovery-semantics"
  6069. rank: "invariant-only"
  6070. - from: "capability.plan-entitlements"
  6071. to: "service.plan-entitlements"
  6072. type: "implemented-by"
  6073. rank: "must-inspect"
  6074. condition: "Personal Coding Plan, Team Plan, and Start Plan retain distinct identity, credential, quota, and billing semantics."
  6075. - from: "service.plan-entitlements"
  6076. to: "surface.plan-usage"
  6077. type: "projects-remote-quota-to"
  6078. rank: "must-inspect"
  6079. - from: "capability.plan-entitlements"
  6080. to: "capability.provider-registry"
  6081. type: "gates-provider-availability"
  6082. rank: "must-inspect"
  6083. condition: "Plan facts affect Built-in account Provider availability only through Account Config and the formal Provider Resolver. Renderer plan-card status does not reapply Account Overlay or gate Effective Provider and Model visibility in Provider Settings."
  6084. - from: "capability.plan-entitlements"
  6085. to: "surface.provider-settings"
  6086. type: "renders-status-card-without-owning-provider-configuration"
  6087. rank: "must-inspect"
  6088. condition: "Team Plan selection scopes entitlement and quota requests, while ProviderSettingsView independently supplies the Effective Provider and Model editor. Loading, request failure, credential unavailability, or explicit non-allocation never hides an existing Provider configuration."
  6089. - from: "capability.plan-entitlements"
  6090. to: "surface.start-plan-manual-claim"
  6091. type: "renders-claimable-preview-in"
  6092. rank: "must-inspect"
  6093. condition: "Preview is exposure-only; claim requires authentication and captcha, and success remains authoritative across best-effort refresh failures."
  6094. - from: "surface.start-plan-manual-claim"
  6095. to: "service.plan-entitlements"
  6096. type: "claims-and-refreshes-through"
  6097. rank: "must-inspect"
  6098. - from: "surface.start-plan-manual-claim"
  6099. to: "boundary.web-remote-replayable"
  6100. type: "must-not-create-recovery-state-in"
  6101. rank: "invariant-only"
  6102. - from: "surface.start-plan-manual-claim"
  6103. to: "evidence.start-plan-manual-claim-tests"
  6104. type: "covered-by"
  6105. rank: "evidence-only"
  6106. - from: "capability.cloud-content-dialog"
  6107. to: "shared.cloud-dialog-hero"
  6108. type: "implemented-by"
  6109. rank: "must-inspect"
  6110. - from: "service.cloud-content-assets"
  6111. to: "capability.desktop-app-shutdown"
  6112. type: "must-finish-async-resource-release-before-host-exit"
  6113. rank: "must-inspect"
  6114. condition: "CloudContentService exposes async-only disposal. Host shutdown must await it without requiring a synchronous disposeAll method; released leases return 404 and the host-owned cache root is removed."
  6115. - from: "capability.marketing-touch"
  6116. to: "capability.cloud-content-dialog"
  6117. type: "renders-through"
  6118. rank: "must-inspect"
  6119. - from: "capability.marketing-touch"
  6120. to: "service.cloud-content-assets"
  6121. type: "resolves-resources-through"
  6122. rank: "must-inspect"
  6123. condition: "Host owns validated ZIP leases; loopback URLs must not be reused by Web/mobile. Marketing Web bundle uses the declared fallback."
  6124. - from: "surface.start-plan-manual-claim"
  6125. to: "shared.cloud-dialog-hero"
  6126. type: "renders-result-hero-through"
  6127. rank: "must-inspect"
  6128. condition: "Server VisualBody is prepared before presentation; claim/report remain controller-owned, provider refresh uses ProviderSettingsService, and navigation never selects a model."
  6129. - from: "shared.cloud-dialog-hero"
  6130. to: "boundary.web-remote-replayable"
  6131. type: "must-not-create-recovery-state-in"
  6132. rank: "invariant-only"
  6133. - from: "capability.app-usage"
  6134. to: "persistence.usage-observability-db"
  6135. type: "reads-authoritative-facts-from"
  6136. rank: "must-inspect"
  6137. condition: "App Usage reads model_usage, turn_usage, and tool_usage; it must not fall back to Coding Plan monitor data or session JSON estimates."
  6138. - from: "persistence.usage-observability-db"
  6139. to: "service.usage-stats-bridge"
  6140. type: "queries-through-protocol"
  6141. rank: "must-inspect"
  6142. - from: "service.usage-stats-bridge"
  6143. to: "surface.app-usage-dashboard"
  6144. type: "projects-snapshot-to"
  6145. rank: "must-inspect"
  6146. - from: "capability.app-usage"
  6147. to: "capability.plan-entitlements"
  6148. type: "must-remain-separate-from"
  6149. rank: "invariant-only"
  6150. - from: "capability.resource-manager"
  6151. to: "surface.resource-manager-window"
  6152. type: "projects-snapshot-to"
  6153. rank: "must-inspect"
  6154. condition: "The renderer polls window.resourceManager.getSnapshot() every 1s and keeps only group expansion state; all metrics come from the main-built snapshot."
  6155. - from: "capability.resource-manager"
  6156. to: "capability.data-observability"
  6157. type: "must-remain-separate-from"
  6158. rank: "invariant-only"
  6159. condition: "Shares the main-process Host/Agent pid registry and CLI MCP tracker, but never alters telemetry sampling cadence or ARMS payloads."
  6160. - from: "capability.resource-manager"
  6161. to: "capability.computer-use"
  6162. type: "conditional-attribution-of"
  6163. rank: "conditional"
  6164. condition: "Official computer-use MCP subtree is attributed to built-in plugins; the macOS CUA Helper launched via LaunchServices is not a Host descendant and is not attributed yet."
  6165. - from: "capability.data-observability"
  6166. to: "service.telemetry-core"
  6167. type: "reports-product-events-through"
  6168. rank: "must-inspect"
  6169. condition: "Product /report, ARMS/RUM, conversation telemetry, logging, and local App Usage remain distinct channels."
  6170. - from: "capability.data-observability"
  6171. to: "service.cli-agent-telemetry"
  6172. type: "reports-agent-runtime-traces-through"
  6173. rank: "must-inspect"
  6174. condition: "CLI agent OTLP traces remain distinct from product /report, ARMS/RUM, local logs, and local App Usage."
  6175. - from: "capability.renderer-user-action-trace"
  6176. to: "capability.data-observability"
  6177. type: "specializes-renderer-observability-within"
  6178. rank: "must-inspect"
  6179. condition: "Renderer ui_action uses a compiled catalog and bounded Desktop-only export; it does not reuse or mutate /event/report."
  6180. - from: "capability.data-observability"
  6181. to: "capability.zcode-data-size-telemetry"
  6182. type: "contains"
  6183. rank: "must-inspect"
  6184. condition: "Desktop main schedules and reports one bounded local data-size snapshot while a Worker owns directory traversal."
  6185. - from: "capability.zcode-data-size-telemetry"
  6186. to: "capability.development-storage-isolation"
  6187. type: "resolves-local-root-through"
  6188. rank: "must-inspect"
  6189. condition: "Default and custom data roots use getZCodeDataRootDir after dataBaseDir bootstrap."
  6190. - from: "capability.zcode-data-size-telemetry"
  6191. to: "boundary.desktop-continuous"
  6192. type: "reports-outside-conversation-delivery"
  6193. rank: "invariant-only"
  6194. - from: "capability.zcode-data-size-telemetry"
  6195. to: "boundary.web-remote-replayable"
  6196. type: "must-not-report-through"
  6197. rank: "invariant-only"
  6198. - from: "capability.data-observability"
  6199. to: "service.mcp-session-runtime"
  6200. type: "observes-process-lifecycle-and-resource-of"
  6201. rank: "must-inspect"
  6202. condition: "Only successful stdio runtime instances, unexpected exits, first session startup counts and five-minute memory samples are reported; raw MCP names, commands, paths, credentials, stderr and PIDs remain local. A tracked process is only suspected orphaned after it has no pool owner for strictly more than 60 seconds and is still observed by the OS sampler."
  6203. - from: "service.mcp-session-runtime"
  6204. to: "boundary.desktop-continuous"
  6205. type: "reports-outside-conversation-delivery"
  6206. rank: "invariant-only"
  6207. condition: "MCP telemetry uses a strict process notification and trusted Host relay; it does not enter conversation frames, snapshots, queues or replay state."
  6208. - from: "service.mcp-session-runtime"
  6209. to: "boundary.web-remote-replayable"
  6210. type: "must-not-report-through"
  6211. rank: "invariant-only"
  6212. condition: "Mobile attachments reuse the existing Agent/MCP runtime and never subscribe to, cache or replay MCP telemetry."
  6213. - from: "capability.workspace-identity"
  6214. to: "service.telemetry-core"
  6215. type: "reports-remote-workspace-lifecycle-through"
  6216. rank: "must-inspect"
  6217. condition: "Only terminal remote connect outcomes and low-cardinality remote_kind/connect_trigger/error_category are reported; paths, identities, session ids, and remote target details must never enter telemetry."
  6218. - from: "capability.remote-delivery"
  6219. to: "service.telemetry-core"
  6220. type: "reports-adoption-lifecycle-through"
  6221. rank: "must-inspect"
  6222. condition: "Desktop reports entry/start/pair/bridge lifecycle events best effort; Web and relay add no reporter or rpc-frame inspection, and desktop-continuous remains isolated from web-remote-replayable."
  6223. - from: "capability.engineering-infrastructure"
  6224. to: "capability.build-release-engineering"
  6225. type: "contains"
  6226. rank: "must-inspect"
  6227. - from: "capability.model-io-full-retention"
  6228. to: "surface.model-io-full-retention-setting"
  6229. type: "renders-in"
  6230. rank: "must-inspect"
  6231. - from: "surface.model-io-full-retention-setting"
  6232. to: "persistence.app-settings"
  6233. type: "persists-to"
  6234. rank: "must-inspect"
  6235. - from: "persistence.app-settings"
  6236. to: "service.model-io-runtime-preference-sync"
  6237. type: "projects-to"
  6238. rank: "must-inspect"
  6239. - from: "service.model-io-runtime-preference-sync"
  6240. to: "persistence.model-io-jsonl"
  6241. type: "controls-retention-of"
  6242. rank: "must-inspect"
  6243. - from: "capability.model-io-full-retention"
  6244. to: "boundary.desktop-continuous"
  6245. type: "must-not-change-delivery"
  6246. rank: "invariant-only"
  6247. - from: "capability.model-io-full-retention"
  6248. to: "boundary.web-remote-replayable"
  6249. type: "must-not-change-recovery"
  6250. rank: "invariant-only"
  6251. - from: "capability.model-io-full-retention"
  6252. to: "evidence.model-io-full-retention-tests"
  6253. type: "covered-by"
  6254. rank: "evidence-only"
  6255. - from: "capability.development-storage-isolation"
  6256. to: "surface.data-directory-setting"
  6257. type: "renders-effective-root-in"
  6258. rank: "should-inspect"
  6259. - from: "surface.data-directory-setting"
  6260. to: "service.data-directory-setting"
  6261. type: "commits-to"
  6262. rank: "must-inspect"
  6263. - from: "service.data-directory-setting"
  6264. to: "persistence.desktop-user-data-root"
  6265. type: "copies-and-points-to"
  6266. rank: "must-inspect"
  6267. - from: "capability.development-storage-isolation"
  6268. to: "persistence.desktop-user-data-root"
  6269. type: "selects-root-for"
  6270. rank: "must-inspect"
  6271. - from: "capability.development-storage-isolation"
  6272. to: "boundary.local-development-runtime"
  6273. type: "uses-dev-root-in"
  6274. rank: "must-inspect"
  6275. condition: "Only app.isPackaged=false uses the dev profile and .zcode-dev root."
  6276. - from: "capability.development-storage-isolation"
  6277. to: "boundary.packaged-desktop-runtime"
  6278. type: "uses-stable-root-in"
  6279. rank: "must-inspect"
  6280. condition: "Packaged Stable and packaged Preview both use the stable profile and .zcode root; ZCODE_ENV does not select storage."
  6281. - from: "persistence.desktop-user-data-root"
  6282. to: "boundary.workspace-key"
  6283. type: "must-not-rewrite-workspace-project-config"
  6284. rank: "invariant-only"
  6285. condition: "Workspace .zcode files remain project content and are not renamed to .zcode-dev."
  6286. - from: "capability.development-storage-isolation"
  6287. to: "evidence.development-storage-isolation"
  6288. type: "covered-by"
  6289. rank: "evidence-only"
  6290. - from: "capability.build-release-engineering"
  6291. to: "capability.embedded-native-search"
  6292. type: "produces-runtime-assets-for"
  6293. rank: "must-inspect"
  6294. - from: "capability.embedded-native-search"
  6295. to: "service.native-search-release-plan"
  6296. type: "versioned-and-validated-by"
  6297. rank: "must-inspect"
  6298. - from: "service.native-search-release-plan"
  6299. to: "persistence.native-search-shared-deps"
  6300. type: "publishes-immutable-archives-to"
  6301. rank: "must-inspect"
  6302. - from: "capability.embedded-native-search"
  6303. to: "boundary.desktop-continuous"
  6304. type: "must-not-change-delivery-semantics"
  6305. rank: "invariant-only"
  6306. - from: "capability.embedded-native-search"
  6307. to: "boundary.web-remote-replayable"
  6308. type: "must-not-change-recovery-semantics"
  6309. rank: "invariant-only"
  6310. - from: "capability.engineering-infrastructure"
  6311. to: "capability.test-automation-platform"
  6312. type: "contains"
  6313. rank: "must-inspect"
  6314. - from: "capability.engineering-infrastructure"
  6315. to: "capability.quality-intelligence"
  6316. type: "contains"
  6317. rank: "must-inspect"
  6318. - from: "capability.test-automation-platform"
  6319. to: "capability.quality-intelligence"
  6320. type: "publishes-test-results-to"
  6321. rank: "must-inspect"
  6322. - from: "capability.build-release-engineering"
  6323. to: "capability.quality-intelligence"
  6324. type: "is-gated-by"
  6325. rank: "should-inspect"
  6326. - from: "capability.build-release-engineering"
  6327. to: "capability.desktop-app-shutdown"
  6328. type: "produces-update-artifacts-consumed-by"
  6329. rank: "must-inspect"
  6330. condition: "CI owns build, signing, notarization, artifact upload, and release promotion; the Host runtime owns update checks, download, and install handoff."
  6331. - from: "capability.quality-intelligence"
  6332. to: "capability.data-observability"
  6333. type: "must-remain-separate-from"
  6334. rank: "invariant-only"
  6335. condition: "Test results, coverage, failure artifacts, and engineering trends must not be reported as product telemetry, ARMS/RUM, Conversation telemetry, or App Usage."
  6336. - from: "capability.office-computer-use-incubation"
  6337. to: "capability.office-suite"
  6338. type: "contains"
  6339. rank: "must-inspect"
  6340. - from: "capability.office-computer-use-incubation"
  6341. to: "capability.computer-use"
  6342. type: "contains"
  6343. rank: "must-inspect"
  6344. - from: "capability.office-suite"
  6345. to: "surface.office-document-workbench"
  6346. type: "renders-in"
  6347. rank: "must-inspect"
  6348. condition: "PDF, DOCX, XLSX, and PPTX preview exist today; Preview Pane PPTX remains read-only and native Office editing is still bounded separately."
  6349. - from: "surface.office-document-workbench"
  6350. to: "service.office-document-platform"
  6351. type: "commits-to"
  6352. rank: "conditional"
  6353. condition: "Planned native Office editing must use a workspace-scoped Host service rather than direct Renderer Node or LibreOffice IO."
  6354. - from: "service.document-skills"
  6355. to: "capability.office-suite"
  6356. type: "produces-workspace-artifacts-for"
  6357. rank: "must-inspect"
  6358. condition: "The official plugin provides DOCX/PDF production and a narrow PPTX reference resolver; it is independent from a future native editor draft."
  6359. - from: "service.document-skills"
  6360. to: "surface.office-document-workbench"
  6361. type: "produces-previewable-artifacts-for"
  6362. rank: "should-inspect"
  6363. - from: "capability.pptx-element-reference"
  6364. to: "surface.pptx-element-selection"
  6365. type: "selects-in"
  6366. rank: "must-inspect"
  6367. - from: "surface.pptx-element-selection"
  6368. to: "state.pptx-preview-element-selection"
  6369. type: "owns-local-draft"
  6370. rank: "must-inspect"
  6371. condition: "Selection is generation-scoped renderer state; source/page changes clear local selection without deleting Composer references."
  6372. - from: "surface.pptx-element-selection"
  6373. to: "state.pptx-preview-ai-edit-draft"
  6374. type: "owns-local-draft"
  6375. rank: "must-inspect"
  6376. condition: "AI Edit captures optional selectedText and opens a local comment draft aligned with the existing code-comment interaction; Composer remains unchanged until explicit confirmation."
  6377. - from: "state.pptx-preview-ai-edit-draft"
  6378. to: "surface.composer-presentation-reference"
  6379. type: "commits-on-confirmation-to"
  6380. rank: "must-inspect"
  6381. condition: "Cancel discards only the local draft; Add to conversation trims optional comment, dispatches one reference, and keeps the selected element."
  6382. - from: "state.pptx-preview-ai-edit-draft"
  6383. to: "boundary.web-remote-replayable"
  6384. type: "must-remain-isolated-from"
  6385. rank: "invariant-only"
  6386. condition: "The unsent instruction draft is renderer-local and never enters task snapshots, replay, relay, main, Host, or Agent runtime state."
  6387. - from: "surface.pptx-element-selection"
  6388. to: "surface.composer-presentation-reference"
  6389. type: "adds-structured-reference-to"
  6390. rank: "must-inspect"
  6391. condition: "Only the focused primary Composer in the same workspace and remote-session scope accepts the event."
  6392. - from: "surface.composer-presentation-reference"
  6393. to: "state.composer-presentation-reference-draft"
  6394. type: "owns-local-draft"
  6395. rank: "must-inspect"
  6396. - from: "surface.composer-presentation-reference"
  6397. to: "state.pptx-reference-preview-navigation"
  6398. type: "opens-referenced-page-through"
  6399. rank: "must-inspect"
  6400. condition: "A concrete draft or historical reference item exits viewer selection, opens or reuses the scoped PPTX preview, and best-effort navigates by a repeatable request id."
  6401. - from: "state.pptx-reference-preview-navigation"
  6402. to: "surface.office-document-workbench"
  6403. type: "projects-to"
  6404. rank: "must-inspect"
  6405. condition: "Missing file and missing page use separate toasts; a readable file remains open when only the referenced page cannot be located."
  6406. - from: "state.pptx-reference-preview-navigation"
  6407. to: "boundary.web-remote-replayable"
  6408. type: "must-remain-isolated-from"
  6409. rank: "invariant-only"
  6410. condition: "Navigation is renderer-local UI intent and does not enter task snapshot, replay, relay, main, or Agent runtime state."
  6411. - from: "state.composer-presentation-reference-draft"
  6412. to: "boundary.workspace-key"
  6413. type: "isolated-by"
  6414. rank: "must-inspect"
  6415. condition: "workspaceIdentity?.trim() || workspacePath, remoteSessionId, and draft/session scope remain distinct coordinates."
  6416. - from: "state.composer-presentation-reference-draft"
  6417. to: "boundary.web-remote-replayable"
  6418. type: "must-remain-isolated-from"
  6419. rank: "invariant-only"
  6420. condition: "Unsent references remain renderer-local; sent prompt text follows existing replayable delivery without new relay or main state."
  6421. - from: "capability.pptx-element-reference"
  6422. to: "service.pptx-reference-resolver"
  6423. type: "mutates-through"
  6424. rank: "must-inspect"
  6425. condition: "textFingerprint validates the full shape or table-cell text; optional selectedText and comment are model context only and never replace the resolver conflict object. New prompt tails name presentation element comments and explicitly require per-reference comment handling without depending on skill loading."
  6426. - from: "service.pptx-reference-resolver"
  6427. to: "boundary.workspace-key"
  6428. type: "preserves-execution-scope"
  6429. rank: "must-inspect"
  6430. condition: "The Agent executes against workspacePath after exact source fingerprint and OOXML locator validation; renderer and relay do not own file IO."
  6431. - from: "capability.computer-use"
  6432. to: "surface.computer-use-task-experience"
  6433. type: "renders-in"
  6434. rank: "must-inspect"
  6435. - from: "surface.computer-use-task-experience"
  6436. to: "state.windows-cua-operation-indicator"
  6437. type: "projects-tool-triggered-state-through"
  6438. rank: "must-inspect"
  6439. condition: "Desktop-local Windows only; each official CUA tool-started refreshes a 10-second safety deadline, while terminal/runtime-unavailable events clear the projection."
  6440. - from: "state.windows-cua-operation-indicator"
  6441. to: "boundary.cua-desktop-local"
  6442. type: "must-remain-local-to"
  6443. rank: "invariant-only"
  6444. condition: "The indicator is a Main-owned ephemeral BrowserWindow and never enters web-remote replayable state, snapshots, relay, or a second runtime."
  6445. - from: "state.windows-cua-operation-indicator"
  6446. to: "capability.desktop-startup-critical-path"
  6447. type: "must-not-enter-business-window-routing"
  6448. rank: "invariant-only"
  6449. condition: "CUA indicator windows are excluded from Explorer/deep-link target selection and primary application window resolution."
  6450. - from: "capability.computer-use"
  6451. to: "service.cua-platform"
  6452. type: "implemented-by"
  6453. rank: "must-inspect"
  6454. - from: "capability.computer-use"
  6455. to: "service.cua-helper-build-release"
  6456. type: "packaged-by"
  6457. rank: "must-inspect"
  6458. condition: "Stable builds assemble ZCode Computer Use.app; local development builds assemble ZCode Computer Use Dev.app. Both use the ZCode Computer Use executable and producer-owned identity constants."
  6459. - from: "capability.build-release-engineering"
  6460. to: "service.cua-helper-build-release"
  6461. type: "produces-signed-runtime-through"
  6462. rank: "must-inspect"
  6463. - from: "service.cua-helper-build-release"
  6464. to: "service.cua-platform"
  6465. type: "supplies-canonical-helper-to"
  6466. rank: "must-inspect"
  6467. condition: "Build, package, CI staging, signing, notarization, installation, and diagnostics must resolve the same producer-owned app, display, executable, bundle, and team identities."
  6468. - from: "service.cua-helper-build-release"
  6469. to: "boundary.packaged-desktop-runtime"
  6470. type: "installs-into"
  6471. rank: "must-inspect"
  6472. - from: "capability.computer-use"
  6473. to: "state.cua-frame-pixel-authority"
  6474. type: "issues-and-consumes-immutable-frames-through"
  6475. rank: "must-inspect"
  6476. condition: "Screenshot, get_app_state window rasters and Zoom child rasters all project model pixels through one producer frame registry and Helper native gate."
  6477. - from: "state.cua-frame-pixel-authority"
  6478. to: "service.cua-platform"
  6479. type: "dispatches-windowserver-verified-pixels-through"
  6480. rank: "must-inspect"
  6481. condition: "Capture and dispatch use the same WindowServer owner policy; element/AX actions remain a separate semantic path."
  6482. - from: "state.cua-frame-pixel-authority"
  6483. to: "service.cua-tool-contract-projection"
  6484. type: "requires-byte-and-adjacency-preservation-from"
  6485. rank: "must-inspect"
  6486. - from: "state.cua-frame-pixel-authority"
  6487. to: "boundary.web-remote-replayable"
  6488. type: "must-not-enter-replayable-state"
  6489. rank: "invariant-only"
  6490. condition: "Frame registry, WindowServer snapshots and native dispatch remain desktop-local ephemeral authority."
  6491. - from: "capability.computer-use"
  6492. to: "service.cua-plugin-dev-runtime-assets"
  6493. type: "requires-model-runtime-from"
  6494. rank: "must-inspect"
  6495. condition: "Computer Use Helper readiness is independent from the shared node_repl SDK/skill assets."
  6496. - from: "capability.computer-use"
  6497. to: "service.cua-node-repl-bridge"
  6498. type: "projects-through-shared-node-repl"
  6499. rank: "must-inspect"
  6500. condition: "The model invokes only mcp__node_repl__js; the bridge bootstraps agent.computerUse per Worker."
  6501. - from: "service.cua-node-repl-bridge"
  6502. to: "state.cua-shared-host-runtime"
  6503. type: "routes-requests-to"
  6504. rank: "must-inspect"
  6505. condition: "Authenticated workspace/session context selects one shared-host CUA runtime session."
  6506. - from: "state.cua-shared-host-runtime"
  6507. to: "boundary.cua-desktop-local"
  6508. type: "owns-ephemeral-authority-within"
  6509. rank: "invariant-only"
  6510. condition: "Native Helper/TCC and action safety remain desktop-local and fail closed."
  6511. - from: "state.cua-shared-host-runtime"
  6512. to: "boundary.web-remote-replayable"
  6513. type: "must-not-enter-replayable-state"
  6514. rank: "invariant-only"
  6515. condition: "Mobile remote only attaches to the existing shared host; relay/main do not own CUA state."
  6516. - from: "capability.build-release-engineering"
  6517. to: "service.cua-plugin-dev-runtime-assets"
  6518. type: "produces-dev-runtime-assets-for"
  6519. rank: "must-inspect"
  6520. condition: "Ordinary desktop Dev builds must stage and validate the CUA SDK/docs/Skill before the Agent bundle is started; Browser owns the only node_repl MCP."
  6521. - from: "service.cua-plugin-dev-runtime-assets"
  6522. to: "service.cua-node-repl-bridge"
  6523. type: "supplies-sdk-assets-to"
  6524. rank: "must-inspect"
  6525. condition: "Filesystem seed must copy the CUA SDK/docs/Skill into the official plugin cache before shared node_repl bootstraps a Worker."
  6526. - from: "service.cua-plugin-dev-runtime-assets"
  6527. to: "boundary.cua-desktop-local"
  6528. type: "must-not-bypass"
  6529. rank: "invariant-only"
  6530. condition: "A valid MCP artifact never bypasses product enablement, broker socket/token, Helper trust, or macOS TCC authorization."
  6531. - from: "capability.computer-use"
  6532. to: "service.cua-node-repl-bridge"
  6533. type: "executes-sdk-through"
  6534. rank: "must-inspect"
  6535. condition: "Current model calls enter only through node_repl js and the agent.computerUse SDK."
  6536. - from: "service.cua-tool-contract-projection"
  6537. to: "surface.computer-use-task-experience"
  6538. type: "historical-transcript-only"
  6539. rank: "evidence-only"
  6540. - from: "service.cua-tool-contract-projection"
  6541. to: "service.cua-platform"
  6542. type: "removed-execution-path"
  6543. rank: "evidence-only"
  6544. condition: "Legacy CUA title/alias projection is retained only for read-only transcript parsing; new execution never dispatches these entries."
  6545. - from: "service.cua-platform"
  6546. to: "state.cua-action-state-authority"
  6547. type: "owns-mutation-epoch-and-post-state"
  6548. rank: "must-inspect"
  6549. condition: "zcode-cua invalidates pre-action state ids and only publishes synced after a full authoritative observation."
  6550. - from: "service.cua-tool-contract-projection"
  6551. to: "state.cua-action-state-authority"
  6552. type: "historical-transcript-only"
  6553. rank: "evidence-only"
  6554. condition: "Historical transcripts remain readable; current action-state returns through the generic node_repl result."
  6555. - from: "state.cua-action-state-authority"
  6556. to: "state.conversation-projection"
  6557. type: "must-not-change-session-semantics"
  6558. rank: "invariant-only"
  6559. condition: "The bounded tool result follows existing lifecycle/history; no new conversation state, queue, owner, snapshot, or replay semantics are introduced."
  6560. - from: "service.cua-platform"
  6561. to: "boundary.cua-desktop-local"
  6562. type: "authorized-by"
  6563. rank: "must-inspect"
  6564. condition: "Current product CUA is enabled by default but remains desktop-local: macOS uses the signed Helper/TCC boundary, while Windows uses the packaged Host-managed Helper runtime; explicit 0/false/off disables it and both platforms fail closed."
  6565. - from: "service.cua-platform"
  6566. to: "capability.agent-core-runtime"
  6567. type: "must-remain-isolated-from"
  6568. rank: "must-inspect"
  6569. condition: "Helper health is checked only at explicit CUA demand boundaries; periodic probes and timer-triggered recovery are forbidden, and every Helper lifecycle result leaves Agent process/session ownership unchanged."
  6570. - from: "surface.computer-use-task-experience"
  6571. to: "state.conversation-projection"
  6572. type: "projects-from"
  6573. rank: "should-inspect"
  6574. condition: "Current UI reuses generic tool/interaction projection; a dedicated live control and takeover protocol is still planned."
  6575. - from: "boundary.web-remote-replayable"
  6576. to: "boundary.cua-desktop-local"
  6577. type: "must-not-create-independent-runtime-for"
  6578. rank: "invariant-only"
  6579. condition: "Mobile remote may attach to an existing local Host but must not install or launch a separate Computer Use Helper."
  6580. - from: "capability.desktop-app-shutdown"
  6581. to: "service.desktop-app-shutdown-policy"
  6582. type: "selects-budget-through"
  6583. rank: "must-inspect"
  6584. condition: "Windows normal quit uses the short frequent-operation budget; update-install keeps the strict resource-release barrier."
  6585. - from: "service.desktop-app-shutdown-policy"
  6586. to: "boundary.desktop-continuous"
  6587. type: "must-not-change-delivery-semantics"
  6588. rank: "invariant-only"
  6589. - from: "service.desktop-app-shutdown-policy"
  6590. to: "boundary.web-remote-replayable"
  6591. type: "must-not-change-recovery-semantics"
  6592. rank: "invariant-only"
  6593. - from: "capability.desktop-startup-critical-path"
  6594. to: "service.desktop-local-host-startup"
  6595. type: "starts-local-host-through"
  6596. rank: "must-inspect"
  6597. - from: "service.desktop-local-host-startup"
  6598. to: "state.desktop-runtime-process-env"
  6599. type: "consumes-bounded-patch-from"
  6600. rank: "must-inspect"
  6601. condition: "Environment prewarm is advisory and bounded; failure or timeout passes a complete shell-free fallback patch and never re-enters synchronous login-shell capture in Local Host."
  6602. - from: "capability.desktop-startup-critical-path"
  6603. to: "state.desktop-tab-restore-projection"
  6604. type: "restores-active-first-through"
  6605. rank: "must-inspect"
  6606. - from: "state.desktop-tab-restore-projection"
  6607. to: "persistence.app-settings"
  6608. type: "restores-from-and-persists-complete-state-to"
  6609. rank: "must-inspect"
  6610. condition: "The active-ready projection is transient and cannot overwrite lastWorkspaceSession; a user-closed active tab cannot be resurrected by deferred completion."
  6611. - from: "service.desktop-local-host-startup"
  6612. to: "boundary.desktop-continuous"
  6613. type: "owned-locally-by"
  6614. rank: "must-inspect"
  6615. - from: "service.desktop-local-host-startup"
  6616. to: "boundary.web-remote-replayable"
  6617. type: "must-not-create-independent-host-for"
  6618. rank: "invariant-only"
  6619. - from: "state.desktop-tab-restore-projection"
  6620. to: "boundary.web-remote-replayable"
  6621. type: "must-not-publish-partial-workspace-snapshot-to"
  6622. rank: "invariant-only"
  6623. condition: "Main workspace sync and Web remote task/workspace snapshots wait for complete tab restore; mobile keeps shared-host replayable semantics."
  6624. - from: "state.desktop-tab-restore-projection"
  6625. to: "boundary.workspace-key"
  6626. type: "preserves-isolation"
  6627. rank: "must-inspect"
  6628. - from: "capability.desktop-startup-critical-path"
  6629. to: "evidence.desktop-startup-critical-path-tests"
  6630. type: "covered-by"
  6631. rank: "evidence-only"
  6632. - from: "capability.project-memory"
  6633. to: "service.project-memory-extraction-lifecycle"
  6634. type: "runs-background-through"
  6635. rank: "must-inspect"
  6636. - from: "capability.project-memory"
  6637. to: "service.headless-cli-prompt-runtime"
  6638. type: "preserves-main-memory-in"
  6639. rank: "should-inspect"
  6640. condition: "`-p/--prompt` and `--target` retain the active Main Memory prompt/index or Recall branch, custom-agent Memory and session persistence."
  6641. - from: "service.headless-cli-prompt-runtime"
  6642. to: "service.project-memory-extraction-lifecycle"
  6643. type: "suppresses-automatic-scheduling-in"
  6644. rank: "must-inspect"
  6645. condition: "By default both non-interactive entry points materialize `memory.extractionEnabled=false`; the scheduler returns before enabled-root resolution, snapshot acquisition, provider work, cursor updates or file mutation. TUI and app-server keep the default enabled lifecycle."
  6646. - from: "service.headless-cli-prompt-runtime"
  6647. to: "service.project-memory-extraction-lifecycle"
  6648. type: "waits-before-close-for"
  6649. rank: "must-inspect"
  6650. condition: "Explicit --memory-bench with -p/--prompt enables Extraction for this invocation and waits without a drain deadline before normal close. Effective Project Memory must already be enabled; signals retain cancellation, and other entry points keep their existing close policy."
  6651. - from: "capability.project-memory"
  6652. to: "surface.project-memory-settings"
  6653. type: "renders-read-only-local-catalog-in"
  6654. rank: "must-inspect"
  6655. - from: "surface.project-memory-settings"
  6656. to: "persistence.app-settings"
  6657. type: "commits-enable-toggle-to"
  6658. rank: "must-inspect"
  6659. condition: "The toggle remains session-scoped; existing runtimes keep their materialized value."
  6660. - from: "surface.project-memory-settings"
  6661. to: "service.project-memory-catalog"
  6662. type: "reads-local-snapshots-through"
  6663. rank: "must-inspect"
  6664. condition: "Only the Desktop local-Host viewer reads the catalog, and it performs no catalog read while Memory is disabled. The UI navigates project list -> project memories -> one document and reads document content only after explicit file selection. Web Remote and Mobile render a local-desktop notice instead."
  6665. - from: "service.project-memory-catalog"
  6666. to: "persistence.project-memory-files"
  6667. type: "reads-without-mutating"
  6668. rank: "must-inspect"
  6669. - from: "surface.project-memory-settings"
  6670. to: "boundary.web-remote-replayable"
  6671. type: "must-not-add-remote-aggregation-to"
  6672. rank: "invariant-only"
  6673. condition: "Web Remote and Mobile keep the Memory toggle but do not render or query the Project Memory viewer."
  6674. - from: "surface.project-memory-settings"
  6675. to: "boundary.desktop-continuous"
  6676. type: "must-not-trigger-provider-or-runtime"
  6677. rank: "invariant-only"
  6678. - from: "service.project-memory-extraction-lifecycle"
  6679. to: "capability.conversation-runtime"
  6680. type: "cancels-on-session-close-with"
  6681. rank: "must-inspect"
  6682. condition: "Session close rejects new Extraction scheduling, drops latest pending, aborts running work, then performs bounded drain before owned resources close."
  6683. - from: "service.project-memory-extraction-lifecycle"
  6684. to: "boundary.desktop-continuous"
  6685. type: "must-not-change-delivery-semantics"
  6686. rank: "invariant-only"
  6687. - from: "service.project-memory-extraction-lifecycle"
  6688. to: "boundary.web-remote-replayable"
  6689. type: "must-not-change-recovery-semantics"
  6690. rank: "invariant-only"
  6691. - from: "capability.provider-templates"
  6692. to: "capability.provider-registry"
  6693. type: "supplies-inheritance-baseline-to"
  6694. rank: "must-inspect"
  6695. condition: "Resolver applies at most one Template baseline before Concrete Provider layers; Registry receives only the completed Effective Provider with its real providerId."
  6696. - from: "capability.provider-templates"
  6697. to: "surface.provider-settings"
  6698. type: "creates-personal-provider-through"
  6699. rank: "must-inspect"
  6700. condition: "Template selection creates a new Personal Provider identity; editing or deleting that instance never mutates the Built-in Template."
  6701. - from: "capability.remote-provider-provisioning"
  6702. to: "capability.provider-registry"
  6703. type: "projects-local-config-into-remote-environment-for"
  6704. rank: "must-inspect"
  6705. condition: "A replace-style envelope updates the Remote Environment stores and refreshes its Registry; it does not transfer a Registry Snapshot or mutate existing Active Models."
  6706. - from: "capability.remote-provider-provisioning"
  6707. to: "capability.workspace-identity"
  6708. type: "deduplicates-by-remote-environment-beyond"
  6709. rank: "must-inspect"
  6710. condition: "Environment identity owns synchronization lanes; workspaceIdentity, workspacePath and remoteSessionId remain workspace/session identities and are not Provisioning deduplication keys."
  6711. - from: "capability.remote-provider-provisioning"
  6712. to: "boundary.desktop-continuous"
  6713. type: "must-not-change-delivery-semantics"
  6714. rank: "invariant-only"
  6715. - from: "capability.remote-provider-provisioning"
  6716. to: "boundary.web-remote-replayable"
  6717. type: "must-not-change-recovery-semantics"
  6718. rank: "invariant-only"
  6719. - from: "capability.model-capabilities"
  6720. to: "capability.model-selection"
  6721. type: "owns-capability-boundary-for"
  6722. rank: "must-inspect"
  6723. - from: "capability.model-capabilities"
  6724. to: "capability.provider-registry"
  6725. type: "owns-capability-boundary-for"
  6726. rank: "must-inspect"
  6727. - from: "capability.model-capabilities"
  6728. to: "service.active-session-model-limits"
  6729. type: "projects-selected-model-limits-through"
  6730. rank: "must-inspect"
  6731. condition: "Context window and max output tokens come from the Model selected for the execution; input/output formats stay on Model.properties and are not copied into a runtime capability map."
  6732. - from: "capability.model-capabilities"
  6733. to: "capability.conversation-runtime"
  6734. type: "configures-runtime-for"
  6735. rank: "must-inspect"
  6736. - from: "capability.model-capabilities"
  6737. to: "boundary.zcode-cli-provider-transport"
  6738. type: "maps-effective-options-into-final-request-body-for"
  6739. rank: "must-inspect"
  6740. condition: "Active Model option maps apply ordered RFC 7396 patches to the final serialized JSON body before request signing; debug and Model IO observe the patched body, and no parallel reasoning/max-output mapping remains."
  6741. - from: "capability.model-capabilities"
  6742. to: "surface.user-subagent-form"
  6743. type: "options-from"
  6744. rank: "must-inspect"
  6745. condition: "A matching workspace-config modelThoughtLevels declaration wins; a missing target model or capability field falls back to App provider metadata without waiting for configOptionsStatus, while catalog reconciliation continues independently in the background."
  6746. - from: "capability.model-capabilities"
  6747. to: "surface.builtin-subagent-model"
  6748. type: "options-from"
  6749. rank: "must-inspect"
  6750. condition: "A matching workspace-config modelThoughtLevels declaration wins; a missing target model or capability field falls back to App provider metadata without waiting for configOptionsStatus, while catalog reconciliation continues independently in the background."
  6751. - from: "capability.model-selection"
  6752. to: "surface.conversation-model-control"
  6753. type: "renders-in"
  6754. rank: "must-inspect"
  6755. - from: "capability.model-selection"
  6756. to: "surface.automation-edit"
  6757. type: "renders-in"
  6758. rank: "must-inspect"
  6759. - from: "capability.model-selection"
  6760. to: "surface.user-subagent-form"
  6761. type: "renders-in"
  6762. rank: "must-inspect"
  6763. - from: "capability.model-selection"
  6764. to: "surface.builtin-subagent-model"
  6765. type: "renders-in"
  6766. rank: "must-inspect"
  6767. - from: "capability.provider-registry"
  6768. to: "surface.provider-settings"
  6769. type: "renders-in"
  6770. rank: "must-inspect"
  6771. - from: "capability.model-selection"
  6772. to: "capability.provider-registry"
  6773. type: "options-from"
  6774. rank: "should-inspect"
  6775. - from: "capability.model-selection"
  6776. to: "service.host-model-selection"
  6777. type: "implemented-by"
  6778. rank: "must-inspect"
  6779. condition: "The target Workspace Host atomically supplies visible candidates, option specs, and preferredSelection; App Recent stays Renderer-owned and workspaceKey-scoped, while the target Worker Registry and ModelFactory retain final execution validation."
  6780. - from: "service.host-model-selection"
  6781. to: "state.renderer-model-selection-read"
  6782. type: "is-read-through"
  6783. rank: "must-inspect"
  6784. condition: "Renderer distinguishes loading, target unavailable, first-read error, and ready; owner changes discard stale results, revisions are monotonic, reload is explicit, and a Ready last-known-good survives background refresh failure."
  6785. - from: "state.renderer-model-selection-read"
  6786. to: "shared-ui.model-select-groups"
  6787. type: "permits-projection-only-when-ready"
  6788. rank: "must-inspect"
  6789. - from: "state.renderer-model-selection-read"
  6790. to: "boundary.web-remote-replayable"
  6791. type: "must-not-fallback-to-local-host-in"
  6792. rank: "must-inspect"
  6793. condition: "Remote waiting or disconnection is unavailable; it never reads Base/Local Host candidates and does not change task replay semantics."
  6794. - from: "service.host-model-selection"
  6795. to: "surface.conversation-model-control"
  6796. type: "supplies-target-environment-options-to"
  6797. rank: "must-inspect"
  6798. condition: "Local panes read Local Host; remote panes read Remote Host; remote waiting or disconnection never falls back to Base/Local Host."
  6799. - from: "service.host-model-selection"
  6800. to: "surface.automation-edit"
  6801. type: "supplies-selected-workspace-options-to"
  6802. rank: "must-inspect"
  6803. - from: "service.provider-settings"
  6804. to: "surface.provider-settings"
  6805. type: "supplies-lifecycle-view-to"
  6806. rank: "must-inspect"
  6807. condition: "Initial loading, first-read error with reload, and Ready ProviderSettingsView remain distinct; a Ready last-known-good survives background refresh failure."
  6808. - from: "service.host-model-selection"
  6809. to: "surface.user-subagent-form"
  6810. type: "supplies-local-environment-options-to"
  6811. rank: "must-inspect"
  6812. condition: "Subagent Settings manages Local Environment config only; remote Environment Subagent config remains independently persisted and is not editable by this UI phase."
  6813. - from: "service.host-model-selection"
  6814. to: "surface.builtin-subagent-model"
  6815. type: "supplies-local-environment-options-to"
  6816. rank: "must-inspect"
  6817. condition: "Built-in Subagent overrides edited in Settings belong to Local Environment only; remote overrides remain owned by the Remote Environment."
  6818. - from: "capability.anthropic-request-metadata"
  6819. to: "service.anthropic-request-options"
  6820. type: "implemented-by"
  6821. rank: "must-inspect"
  6822. - from: "service.anthropic-request-options"
  6823. to: "capability.provider-registry"
  6824. type: "applies-to-provider-kind"
  6825. rank: "must-inspect"
  6826. condition: "Only providerKind=anthropic receives metadata.user_id."
  6827. - from: "service.anthropic-request-options"
  6828. to: "service.cli-device-mid"
  6829. type: "reads-device-identity-through"
  6830. rank: "must-inspect"
  6831. - from: "service.cli-device-mid"
  6832. to: "persistence.telemetry-device-mid"
  6833. type: "reads-creates"
  6834. rank: "must-inspect"
  6835. condition: "The actual local or remote Agent runtime uses its own ZCODE_DATA_BASE_DIR and shares the deviceMid field with Desktop/telemetry when colocated."
  6836. - from: "service.telemetry-core"
  6837. to: "persistence.telemetry-device-mid"
  6838. type: "shares-device-identity-with"
  6839. rank: "must-inspect"
  6840. - from: "service.anthropic-request-options"
  6841. to: "boundary.desktop-continuous"
  6842. type: "must-not-change-delivery-semantics"
  6843. rank: "invariant-only"
  6844. - from: "service.anthropic-request-options"
  6845. to: "boundary.web-remote-replayable"
  6846. type: "must-not-change-recovery-semantics"
  6847. rank: "invariant-only"
  6848. - from: "capability.model-request-session-type-attribution"
  6849. to: "service.model-request-session-type-attribution"
  6850. type: "implemented-by"
  6851. rank: "must-inspect"
  6852. - from: "service.model-request-session-type-attribution"
  6853. to: "boundary.zcode-cli-provider-transport"
  6854. type: "injects-managed-request-header-at"
  6855. rank: "must-inspect"
  6856. condition: "Every generateText, streamText, retry, and recovery request sends exactly one x-zcode-session-type value; managed attribution overrides a conflicting provider static header."
  6857. - from: "service.model-request-session-type-attribution"
  6858. to: "boundary.desktop-continuous"
  6859. type: "must-not-change-delivery-semantics"
  6860. rank: "invariant-only"
  6861. - from: "service.model-request-session-type-attribution"
  6862. to: "boundary.web-remote-replayable"
  6863. type: "must-not-change-recovery-semantics"
  6864. rank: "invariant-only"
  6865. - from: "capability.model-request-session-type-attribution"
  6866. to: "evidence.model-request-session-type-tests"
  6867. type: "covered-by"
  6868. rank: "evidence-only"
  6869. - from: "capability.anthropic-reasoning-history-replay"
  6870. to: "service.anthropic-reasoning-history-projection"
  6871. type: "implemented-by"
  6872. rank: "must-inspect"
  6873. - from: "capability.model-reasoning-request-projection"
  6874. to: "service.model-reasoning-request-projection"
  6875. type: "implemented-by"
  6876. rank: "must-inspect"
  6877. - from: "service.model-reasoning-request-projection"
  6878. to: "boundary.zcode-cli-provider-transport"
  6879. type: "projects-request-local-history-to"
  6880. rank: "must-inspect"
  6881. condition: "Exact-empty reasoning blocks without provider options are omitted only from serializer input; opaque provider metadata, whitespace-only reasoning, OpenAI Responses references, and provider-required tool-call placeholders remain unchanged, while canonical and persisted history are not mutated."
  6882. - from: "service.anthropic-reasoning-history-projection"
  6883. to: "boundary.zcode-cli-provider-transport"
  6884. type: "projects-request-local-history-to"
  6885. rank: "must-inspect"
  6886. condition: "Only Anthropic requests normalize reasoning history, exactly once per logical request before its physical attempts; ordinary and signature-repair retries reuse or derive from that request-local projection, while canonical MessageHistory and persisted messages remain unchanged."
  6887. - from: "persistence.assistant-message-model-provenance"
  6888. to: "state.message-history-model-provenance"
  6889. type: "hydrates-model-provenance-into"
  6890. rank: "must-inspect"
  6891. condition: "Persisted assistant providerID, modelID, and variant restore ModelInputMessage.modelRef without adding a storage migration."
  6892. - from: "state.message-history-model-provenance"
  6893. to: "service.anthropic-reasoning-history-projection"
  6894. type: "supplies-source-model-identity-to"
  6895. rank: "must-inspect"
  6896. condition: "Live result.model and resumed assistant metadata supply the same providerId + modelId identity; missing provenance remains unknown rather than being inferred as cross-model."
  6897. - from: "service.anthropic-reasoning-history-projection"
  6898. to: "state.conversation-projection"
  6899. type: "reports-signature-repair-through"
  6900. rank: "should-inspect"
  6901. condition: "A confirmed signature rejection reuses model_retry_scheduled and the existing control.apiRetry live-tail state."
  6902. - from: "service.anthropic-reasoning-history-projection"
  6903. to: "persistence.usage-observability-db"
  6904. type: "counts-physical-retry-through"
  6905. rank: "should-inspect"
  6906. condition: "Usage counts the existing model_retry_scheduled event; no separate repair counter or persistence path is introduced."
  6907. - from: "surface.conversation-model-control"
  6908. to: "shared-ui.model-config-select"
  6909. type: "shares-component"
  6910. rank: "must-inspect"
  6911. - from: "surface.automation-edit"
  6912. to: "shared-ui.model-config-select"
  6913. type: "shares-component"
  6914. rank: "must-inspect"
  6915. - from: "surface.user-subagent-form"
  6916. to: "shared-ui.model-config-select"
  6917. type: "shares-component"
  6918. rank: "must-inspect"
  6919. - from: "surface.builtin-subagent-model"
  6920. to: "shared-ui.model-config-select"
  6921. type: "shares-component"
  6922. rank: "must-inspect"
  6923. - from: "surface.conversation-model-control"
  6924. to: "shared-ui.model-select-groups"
  6925. type: "options-from"
  6926. rank: "should-inspect"
  6927. - from: "surface.automation-edit"
  6928. to: "shared-ui.model-select-groups"
  6929. type: "options-from"
  6930. rank: "should-inspect"
  6931. - from: "surface.user-subagent-form"
  6932. to: "shared-ui.model-select-groups"
  6933. type: "options-from"
  6934. rank: "should-inspect"
  6935. - from: "surface.builtin-subagent-model"
  6936. to: "shared-ui.model-select-groups"
  6937. type: "options-from"
  6938. rank: "should-inspect"
  6939. - from: "shared-ui.model-select-groups"
  6940. to: "service.host-model-selection"
  6941. type: "projects-ready-view-from"
  6942. rank: "must-inspect"
  6943. condition: "The builder only accepts a Ready target-host ModelSelectionView; loading, unavailable, and error remain caller-owned lifecycle states."
  6944. - from: "capability.model-capabilities"
  6945. to: "shared-ui.model-select-groups"
  6946. type: "projects-vision-badge-from-input-format"
  6947. rank: "must-inspect"
  6948. condition: "Any enabled non-text properties.input_format leaf marks the model item as Vision; model ids remain opaque strings, including nested slashes."
  6949. - from: "capability.model-capabilities"
  6950. to: "surface.provider-settings"
  6951. type: "renders-vision-badge-in"
  6952. rank: "must-inspect"
  6953. condition: "The compact model row renders Vision beside context capacity without changing model metadata or persistence."
  6954. - from: "surface.provider-settings"
  6955. to: "service.provider-settings"
  6956. type: "commits-to"
  6957. rank: "must-inspect"
  6958. - from: "surface.provider-settings"
  6959. to: "capability.provider-registry"
  6960. type: "configures-explicit-model-input-format-for"
  6961. rank: "must-inspect"
  6962. condition: "Text is locked for input, output is text-only, Image/Video are editable, hidden Audio/PDF leaves are preserved, and changes affect Models created after the Registry refresh."
  6963. - from: "surface.provider-settings"
  6964. to: "capability.provider-registry"
  6965. type: "configures-provider-owned-model-membership-activation-and-order-for"
  6966. rank: "must-inspect"
  6967. condition: "Built-in ids are read-only, Personal ids are editable, Effective Model Config enabled controls activation, and providerOrder/modelOrder control sorting. Disabled members remain editable but cannot be tested or created; Built-in wins duplicate ids and later duplicates are ignored then normalized on save."
  6968. - from: "surface.provider-settings"
  6969. to: "capability.provider-registry"
  6970. type: "resolves-model-config-rules-for-draft-display"
  6971. rank: "must-inspect"
  6972. condition: "Add/edit Model dialogs share resolveModelConfig and a 1200ms idle/blur flush trigger; persisted Personal Config remains sparse, Renderer discards stale resolutions, and only reports loaded defaults when inheritedConfig actually changes."
  6973. - from: "capability.provider-registry"
  6974. to: "surface.provider-settings"
  6975. type: "renders-builtin-provider-connection-facts-read-only-in"
  6976. rank: "must-inspect"
  6977. condition: "Standard Built-in Providers display the same Base URL and API Schema facts as Personal Providers, but freeze those Built-in-owned fields; API Key and Personal Model Config permissions remain independent."
  6978. - from: "capability.provider-registry"
  6979. to: "shared-ui.model-select-groups"
  6980. type: "projects-visible-enabled-candidates-to"
  6981. rank: "must-inspect"
  6982. condition: "Only executable members from visible Providers enter user candidates. Hidden Providers remain available to exact internal Registry creation; disabled, incomplete, or duplicate-later members do not enter Registry or fallback, and candidate order is preserved without UI re-sorting."
  6983. - from: "service.model-provider"
  6984. to: "persistence.model-provider-config"
  6985. type: "persists-through"
  6986. rank: "must-inspect"
  6987. - from: "persistence.model-provider-config"
  6988. to: "capability.provider-registry"
  6989. type: "projects-explicit-input-output-format-into"
  6990. rank: "must-inspect"
  6991. - from: "service.model-provider"
  6992. to: "capability.provider-registry"
  6993. type: "owns-registry-for"
  6994. rank: "must-inspect"
  6995. - from: "capability.provider-registry"
  6996. to: "service.active-session-model-limits"
  6997. type: "supplies-explicitly-selected-model-limits-to"
  6998. rank: "must-inspect"
  6999. condition: "Selection/admission supplies the chosen Model limits; a Provider Config refresh alone must not hot-mutate an already created Active Model."
  7000. - from: "service.active-session-model-limits"
  7001. to: "capability.conversation-runtime"
  7002. type: "updates-runtime-config-for"
  7003. rank: "must-inspect"
  7004. - from: "service.active-session-model-limits"
  7005. to: "state.conversation-projection"
  7006. type: "projects-capacity-to"
  7007. rank: "must-inspect"
  7008. condition: "A same-model ModelSelected replaces maxTokens, preserves usedTokens, and uses null for unknown capacity."
  7009. - from: "surface.conversation-model-control"
  7010. to: "state.conversation-projection"
  7011. type: "commits-to"
  7012. rank: "must-inspect"
  7013. - from: "capability.conversation-runtime"
  7014. to: "surface.conversation-query-edit"
  7015. type: "renders-in"
  7016. rank: "must-inspect"
  7017. - from: "capability.provider-retry-live-tail"
  7018. to: "state.conversation-projection"
  7019. type: "projects-from"
  7020. rank: "must-inspect"
  7021. condition: "ProductProjection owns the authoritative control.apiRetry runtime state; UI does not infer retry from transport or elapsed time."
  7022. - from: "capability.provider-retry-live-tail"
  7023. to: "surface.subagent-session-detail"
  7024. type: "renders-in"
  7025. rank: "must-inspect"
  7026. condition: "Main and read-only child details share ConversationTimeline; child display does not enable manual retry."
  7027. - from: "capability.provider-retry-live-tail"
  7028. to: "boundary.desktop-continuous"
  7029. type: "must-not-change-delivery-semantics"
  7030. rank: "invariant-only"
  7031. condition: "The <=2 presentation threshold must not alter desktop direct continuous delivery or runtime snapshot authority."
  7032. - from: "capability.provider-retry-live-tail"
  7033. to: "boundary.web-remote-replayable"
  7034. type: "must-not-change-recovery-semantics"
  7035. rank: "invariant-only"
  7036. condition: "The <=2 presentation threshold must not alter mobile replayable gap/snapshot recovery."
  7037. - from: "capability.provider-retry-live-tail"
  7038. to: "evidence.conversation-catalog"
  7039. type: "covered-by"
  7040. rank: "evidence-only"
  7041. condition: "SAT25, SAT25a and SAT25b define the threshold equivalence classes and their loading/retry assertions."
  7042. - from: "capability.model-stream-recovery"
  7043. to: "capability.provider-retry-live-tail"
  7044. type: "projects-recovery-status-through"
  7045. rank: "must-inspect"
  7046. condition: "Adapter pre-output retries and core safe-anchor recovery share control.apiRetry, but reasoning remains real-time and therefore recovers in core after crossing the adapter boundary."
  7047. - from: "capability.model-stream-recovery"
  7048. to: "boundary.desktop-continuous"
  7049. type: "must-not-change-delivery-semantics"
  7050. rank: "invariant-only"
  7051. - from: "capability.model-stream-recovery"
  7052. to: "boundary.web-remote-replayable"
  7053. type: "must-not-change-recovery-semantics"
  7054. rank: "invariant-only"
  7055. - from: "capability.model-stream-recovery"
  7056. to: "evidence.conversation-fault-catalog"
  7057. type: "covered-by"
  7058. rank: "evidence-only"
  7059. condition: "Fault subcase S02-R1 defines reasoning-only retryable interruption recovery while preserving tool, cancellation, queue, and delivery boundaries."
  7060. - from: "capability.model-empty-completion-retry"
  7061. to: "capability.provider-retry-live-tail"
  7062. type: "projects-recovery-status-through"
  7063. rank: "must-inspect"
  7064. condition: "Generic zero-output completions publish the same model_request_failed/model_retry_scheduled status path while the adapter-specific empty-completion budget remains capped at one retry."
  7065. - from: "capability.ask-user-question-auto-resolution"
  7066. to: "surface.ask-user-question-auto-resolution-setting"
  7067. type: "configured-in"
  7068. rank: "must-inspect"
  7069. - from: "surface.ask-user-question-auto-resolution-setting"
  7070. to: "persistence.app-settings"
  7071. type: "persists-to"
  7072. rank: "must-inspect"
  7073. - from: "persistence.app-settings"
  7074. to: "service.interaction-auto-resolution-runtime"
  7075. type: "syncs-runtime-preference-to"
  7076. rank: "must-inspect"
  7077. condition: "Each renderer syncs the app-global preference to its connected local or remote host and cached remote Bot runtimes; inactive workspaces and uncached Bot targets do not spawn a Host or CLI only for preference delivery."
  7078. - from: "service.interaction-auto-resolution-runtime"
  7079. to: "surface.parent-task-blocking-interaction"
  7080. type: "projects-authoritative-state-to"
  7081. rank: "must-inspect"
  7082. - from: "service.interaction-auto-resolution-runtime"
  7083. to: "boundary.workspace-key"
  7084. type: "routes-by"
  7085. rank: "must-inspect"
  7086. - from: "service.interaction-auto-resolution-runtime"
  7087. to: "boundary.desktop-continuous"
  7088. type: "projects-through"
  7089. rank: "invariant-only"
  7090. - from: "service.interaction-auto-resolution-runtime"
  7091. to: "boundary.web-remote-replayable"
  7092. type: "recovers-through"
  7093. rank: "invariant-only"
  7094. - from: "capability.ask-user-question-auto-resolution"
  7095. to: "evidence.conversation-catalog"
  7096. type: "covered-by"
  7097. rank: "evidence-only"
  7098. - from: "capability.subagents"
  7099. to: "state.subagent-child-runtime"
  7100. type: "executes-with"
  7101. rank: "must-inspect"
  7102. condition: "Agent tool input does not select a model; the resolved Agent profile is the only child-model authority, with parent-model inheritance when profile.model is absent."
  7103. - from: "capability.subagents"
  7104. to: "surface.subagent-session-detail"
  7105. type: "renders-child-owned-conversation-in"
  7106. rank: "must-inspect"
  7107. - from: "surface.subagent-session-detail"
  7108. to: "state.conversation-projection"
  7109. type: "projects-from"
  7110. rank: "must-inspect"
  7111. condition: "Main and child details share SessionPane and ConversationTimeline; read-only child details may display provider retry and durable initial-model facts without enabling composer or row actions."
  7112. - from: "state.subagent-child-runtime"
  7113. to: "persistence.session-model-timeline"
  7114. type: "persists-initial-effective-model-to"
  7115. rank: "must-inspect"
  7116. condition: "Only a fresh child records model_change with absent source before its first input; resumed and pre-existing children are not backfilled."
  7117. - from: "persistence.session-model-timeline"
  7118. to: "state.conversation-projection"
  7119. type: "recovers-model-boundaries-through"
  7120. rank: "must-inspect"
  7121. condition: "A source-less model_change synthesizes previousModelRef=null as a generic empty-to-model boundary; ordinary A-to-B model changes keep complete source identity."
  7122. - from: "surface.subagent-session-detail"
  7123. to: "boundary.desktop-continuous"
  7124. type: "must-not-change-delivery-semantics"
  7125. rank: "invariant-only"
  7126. - from: "surface.subagent-session-detail"
  7127. to: "boundary.web-remote-replayable"
  7128. type: "must-not-change-recovery-semantics"
  7129. rank: "invariant-only"
  7130. - from: "capability.subagents"
  7131. to: "surface.parent-task-blocking-interaction"
  7132. type: "renders-blocking-interactions-in"
  7133. rank: "must-inspect"
  7134. - from: "state.subagent-child-runtime"
  7135. to: "service.subagent-interaction-broker"
  7136. type: "delegates-blocking-interactions-through"
  7137. rank: "must-inspect"
  7138. - from: "state.subagent-child-runtime"
  7139. to: "state.conversation-projection"
  7140. type: "mirrors-blocking-interaction-events-to"
  7141. rank: "must-inspect"
  7142. condition: "PermissionRequested/Resolved/Denied events use the parent session while preserving the child origin and stable mirrored tool identity."
  7143. - from: "service.subagent-interaction-broker"
  7144. to: "state.conversation-projection"
  7145. type: "shares-parent-request-identity-with"
  7146. rank: "must-inspect"
  7147. condition: "The broker response route and parent projection share the unchanged requestId; the broker alone does not create pendingInteractions."
  7148. - from: "state.conversation-projection"
  7149. to: "surface.parent-task-blocking-interaction"
  7150. type: "drives"
  7151. rank: "must-inspect"
  7152. - from: "capability.conversation-runtime"
  7153. to: "surface.conversation-tool-call"
  7154. type: "renders-in"
  7155. rank: "must-inspect"
  7156. - from: "surface.conversation-tool-call"
  7157. to: "state.conversation-projection"
  7158. type: "projects-from"
  7159. rank: "must-inspect"
  7160. - from: "surface.conversation-tool-call"
  7161. to: "boundary.desktop-continuous"
  7162. type: "must-not-change-delivery-semantics"
  7163. rank: "invariant-only"
  7164. - from: "surface.conversation-tool-call"
  7165. to: "boundary.web-remote-replayable"
  7166. type: "must-not-change-recovery-semantics"
  7167. rank: "invariant-only"
  7168. - from: "state.subagent-child-runtime"
  7169. to: "state.conversation-projection"
  7170. type: "must-not-persist-raw-events-to"
  7171. rank: "invariant-only"
  7172. condition: "Raw child events and model-io remain child-owned; only parent-routed live interaction/tool mirrors enter the parent projection."
  7173. - from: "surface.conversation-query-edit"
  7174. to: "service.conversation-row-actions"
  7175. type: "commits-to"
  7176. rank: "must-inspect"
  7177. - from: "service.conversation-row-actions"
  7178. to: "state.conversation-projection"
  7179. type: "resolves-target-from"
  7180. rank: "must-inspect"
  7181. condition: "canEdit and editUserQuery must share the same canonical edit target authority at one projection revision."
  7182. - from: "state.conversation-projection"
  7183. to: "capability.conversation-runtime"
  7184. type: "owns-runtime-for"
  7185. rank: "must-inspect"
  7186. - from: "state.conversation-projection"
  7187. to: "evidence.conversation-catalog"
  7188. type: "covered-by"
  7189. rank: "evidence-only"
  7190. condition: "A12 covers the normal sendText path: timely authoritative row/queue settles without recovery; complete topic silence triggers one same-sub resync and never replays the command."
  7191. - from: "state.conversation-projection"
  7192. to: "boundary.desktop-continuous"
  7193. type: "must-not-change-delivery-semantics"
  7194. rank: "invariant-only"
  7195. condition: "Accepted-input projection watchdog reuses same-sub recovery and never switches desktop continuous to replayable delivery."
  7196. - from: "state.conversation-projection"
  7197. to: "boundary.web-remote-replayable"
  7198. type: "must-not-change-recovery-semantics"
  7199. rank: "invariant-only"
  7200. condition: "Accepted-input projection watchdog reuses the existing replayable same-sub recovery; it does not create a host-local queue or bypass snapshot/gap recovery."
  7201. - from: "capability.conversation-query-navigation"
  7202. to: "surface.conversation-query-navigator"
  7203. type: "renders-in"
  7204. rank: "must-inspect"
  7205. - from: "surface.conversation-query-navigator"
  7206. to: "state.conversation-projection"
  7207. type: "projects-from"
  7208. rank: "must-inspect"
  7209. - from: "surface.conversation-query-navigator"
  7210. to: "service.conversation-rows-range"
  7211. type: "hydrates-through"
  7212. rank: "must-inspect"
  7213. condition: "Only while the pane-wide navigator passes its layout gate; narrow mobile does not hydrate full history for a hidden rail."
  7214. - from: "service.conversation-rows-range"
  7215. to: "state.conversation-projection"
  7216. type: "reads-authoritative-history-from"
  7217. rank: "must-inspect"
  7218. - from: "surface.conversation-query-navigator"
  7219. to: "boundary.web-remote-replayable"
  7220. type: "must-not-change-recovery-semantics"
  7221. rank: "invariant-only"
  7222. - from: "surface.conversation-query-navigator"
  7223. to: "boundary.desktop-continuous"
  7224. type: "must-not-change-delivery-semantics"
  7225. rank: "invariant-only"
  7226. - from: "capability.task-persistence"
  7227. to: "service.session-runtime-activation"
  7228. type: "restores-through"
  7229. rank: "must-inspect"
  7230. - from: "capability.workspace-identity"
  7231. to: "service.persisted-remote-session-repair"
  7232. type: "repairs-legacy-state-through"
  7233. rank: "must-inspect"
  7234. condition: "Only task-allowlisted null identities or deterministic historical remote path shapes may be repaired; ambiguous path-only ownership stays fail-closed."
  7235. - from: "service.persisted-remote-session-repair"
  7236. to: "service.session-runtime-activation"
  7237. type: "repairs-before-materialization"
  7238. rank: "must-inspect"
  7239. - from: "service.persisted-remote-session-repair"
  7240. to: "boundary.workspace-key"
  7241. type: "preserves-isolation"
  7242. rank: "must-inspect"
  7243. - from: "service.session-runtime-activation"
  7244. to: "state.conversation-projection"
  7245. type: "coordinates-history-and-runtime-readiness"
  7246. rank: "must-inspect"
  7247. condition: "Negotiated historyFirst publishes durable history before runtime activation. The gateway owns both readiness stages: rows range uses history readiness, runtime queries wait, and new execution commands reject until ready. Legacy clients still wait for full initialization."
  7248. - from: "service.session-runtime-activation"
  7249. to: "state.workflow-run-journal"
  7250. type: "gates-runtime-query"
  7251. rank: "must-inspect"
  7252. condition: "SessionPane enables workflow journal queries only after runtime readiness; subscribing to history must precede any query that could activate a cold runtime."
  7253. - from: "service.session-runtime-activation"
  7254. to: "boundary.desktop-continuous"
  7255. type: "must-not-change-delivery"
  7256. rank: "invariant-only"
  7257. - from: "service.session-runtime-activation"
  7258. to: "boundary.web-remote-replayable"
  7259. type: "must-not-change-delivery"
  7260. rank: "invariant-only"
  7261. - from: "service.session-runtime-activation"
  7262. to: "boundary.workspace-key"
  7263. type: "preserves-isolation"
  7264. rank: "must-inspect"
  7265. - from: "capability.agent-core-runtime"
  7266. to: "capability.session-residency-management"
  7267. type: "provides-authoritative-work-guards-to"
  7268. rank: "must-inspect"
  7269. condition: "Resident eviction must use the runtime-owned blocking-work aggregate (active/queued/runtime-drain, task registry, detached sidecars, memory work) plus protocol finalization leases; activeAbortController alone is insufficient."
  7270. - from: "capability.session-residency-management"
  7271. to: "capability.conversation-runtime"
  7272. type: "bounds-resident-materialization-of"
  7273. rank: "must-inspect"
  7274. condition: "Each CLI targets a bounded number of resident sessions but may exceed the target while sessions are protected; cross-session concurrency remains unlimited."
  7275. - from: "capability.session-residency-management"
  7276. to: "service.session-runtime-activation"
  7277. type: "reactivates-through"
  7278. rank: "must-inspect"
  7279. condition: "Deactivated sessions are indistinguishable from never-loaded persisted sessions and reuse the existing cold-resume path."
  7280. - from: "capability.session-residency-management"
  7281. to: "state.conversation-projection"
  7282. type: "coordinates-lifecycle-through-subscription"
  7283. rank: "should-inspect"
  7284. condition: "Renderer projection stores release their own pane leases and unsubscribe before CLI eviction becomes eligible; no deactivation notification is sent."
  7285. - from: "capability.session-residency-management"
  7286. to: "persistence.task-index"
  7287. type: "must-not-remove-from"
  7288. rank: "invariant-only"
  7289. condition: "Resident eviction releases runtime memory only and never emits session.removed or changes task-list membership."
  7290. - from: "capability.session-residency-management"
  7291. to: "boundary.desktop-continuous"
  7292. type: "must-not-change-delivery"
  7293. rank: "invariant-only"
  7294. condition: "An active desktop conversation subscription protects its resident session."
  7295. - from: "capability.session-residency-management"
  7296. to: "boundary.web-remote-replayable"
  7297. type: "must-not-change-recovery"
  7298. rank: "invariant-only"
  7299. condition: "A V4 replayable subscription protects its session; the current legacy session/subscribe stream has no unsubscribe and remains conservatively protected. Existing snapshot/gap/cold-resume boundaries do not change."
  7300. - from: "capability.session-residency-management"
  7301. to: "boundary.workspace-key"
  7302. type: "must-preserve-isolation"
  7303. rank: "invariant-only"
  7304. condition: "The pool is process-local and session-addressed; remote workspace routing keeps workspaceIdentity?.trim() || workspacePath."
  7305. - from: "capability.session-residency-management"
  7306. to: "evidence.conversation-catalog"
  7307. type: "covered-by"
  7308. rank: "evidence-only"
  7309. - from: "surface.automation-edit"
  7310. to: "state.automation-form-draft"
  7311. type: "owns-draft"
  7312. rank: "must-inspect"
  7313. - from: "surface.automation-template-gallery"
  7314. to: "shared-ui.automation-template-catalog"
  7315. type: "options-from"
  7316. rank: "must-inspect"
  7317. - from: "surface.off-peak-home-template-carousel"
  7318. to: "shared-ui.automation-template-catalog"
  7319. type: "options-from"
  7320. rank: "must-inspect"
  7321. condition: "The home surface keeps the first two ordinary remote templates plus local Customize, clamps descriptions to two lines, and resolves each locale from ClientSceneItem.descs before falling back to contents; contents remains the draft prompt source."
  7322. - from: "shared-ui.automation-template-catalog"
  7323. to: "service.client-scenes"
  7324. type: "loads-from"
  7325. rank: "must-inspect"
  7326. condition: "scheduled-task and off-peak-task are candidate-only remote configuration; blank-title items are rejected; prompt item img is a Lucide canonical name shared by the New task home cards and Automations gallery, imgs is ignored, and unknown names preserve each surface's local Lucide fallback; scheduled cron must round-trip through the Automation editor without loss; pending Automations galleries show four skeleton cards per visible section and settled empty catalogs show a localized unavailable state; the home carousel alone appends one local Customize fallback when remote data omits it."
  7327. - from: "surface.automation-template-gallery"
  7328. to: "state.automation-form-draft"
  7329. type: "prefills"
  7330. rank: "must-inspect"
  7331. condition: "Click materializes current-locale values into a normal local draft and never creates or sends automatically."
  7332. - from: "surface.off-peak-home-template-carousel"
  7333. to: "surface.off-peak-creation"
  7334. type: "prefills"
  7335. rank: "must-inspect"
  7336. condition: "Click freezes current-locale labels and contents before navigation; display-only descs must not replace the contents-backed draft prompt, and later locale or Client Scenes refresh cannot overwrite user edits."
  7337. - from: "shared-ui.automation-template-catalog"
  7338. to: "persistence.automation-record"
  7339. type: "must-not-persist-to"
  7340. rank: "invariant-only"
  7341. condition: "Only user-confirmed final form values persist; Client Scenes scene, item, defaults, and labels metadata remain candidate-only."
  7342. - from: "state.automation-form-draft"
  7343. to: "service.automation"
  7344. type: "commits-to"
  7345. rank: "must-inspect"
  7346. - from: "capability.automations"
  7347. to: "surface.conversation-automation-tools"
  7348. type: "renders-in"
  7349. rank: "must-inspect"
  7350. - from: "surface.conversation-automation-tools"
  7351. to: "service.automation"
  7352. type: "commits-to"
  7353. rank: "must-inspect"
  7354. condition: "Agent tool writes must remain scoped to the current workspace and preserve automation identity and run history."
  7355. - from: "service.automation"
  7356. to: "persistence.automation-record"
  7357. type: "persists-to"
  7358. rank: "must-inspect"
  7359. - from: "persistence.automation-record"
  7360. to: "capability.automations"
  7361. type: "owns-config-for"
  7362. rank: "must-inspect"
  7363. - from: "surface.user-subagent-form"
  7364. to: "state.subagent-form-draft"
  7365. type: "owns-draft"
  7366. rank: "must-inspect"
  7367. - from: "state.subagent-form-draft"
  7368. to: "service.subagents"
  7369. type: "commits-to"
  7370. rank: "must-inspect"
  7371. - from: "surface.builtin-subagent-model"
  7372. to: "service.subagents"
  7373. type: "commits-to"
  7374. rank: "must-inspect"
  7375. - from: "service.subagents"
  7376. to: "persistence.subagent-markdown"
  7377. type: "persists-to"
  7378. rank: "must-inspect"
  7379. condition: "Each Environment persists its own user, workspace, and built-in Subagent configuration; current Settings writes Local Host configuration only and does not synchronize to remote Environments."
  7380. - from: "persistence.subagent-markdown"
  7381. to: "capability.subagents"
  7382. type: "owns-config-for"
  7383. rank: "must-inspect"
  7384. - from: "capability.oauth-login-attribution"
  7385. to: "service.oauth"
  7386. type: "handled-by"
  7387. rank: "must-inspect"
  7388. - from: "service.oauth"
  7389. to: "state.oauth-pending-callback"
  7390. type: "owns-lifecycle"
  7391. rank: "must-inspect"
  7392. - from: "service.oauth"
  7393. to: "persistence.oauth-login-attribution"
  7394. type: "persists-to"
  7395. rank: "must-inspect"
  7396. - from: "service.telemetry-core"
  7397. to: "persistence.oauth-login-attribution"
  7398. type: "reads-best-effort"
  7399. rank: "should-inspect"
  7400. condition: "Attribution credential failures must not block telemetry delivery."
  7401. - from: "surface.automation-edit"
  7402. to: "state.conversation-projection"
  7403. type: "must-not-mutate"
  7404. rank: "invariant-only"
  7405. condition: "Opening, editing, or cancelling an automation must not change the current workspace or conversation model."
  7406. - from: "capability.off-peak-telemetry"
  7407. to: "surface.off-peak-creation"
  7408. type: "renders-in"
  7409. rank: "must-inspect"
  7410. - from: "capability.off-peak-telemetry"
  7411. to: "surface.off-peak-upgrade"
  7412. type: "renders-in"
  7413. rank: "must-inspect"
  7414. - from: "surface.off-peak-upgrade"
  7415. to: "state.coding-plan-purchase-funnel"
  7416. type: "starts-funnel-with"
  7417. rank: "must-inspect"
  7418. condition: "Both idle-time Upgrade entries use app.session/session_idle_time and one purchase_funnel_id."
  7419. - from: "state.coding-plan-purchase-funnel"
  7420. to: "state.oauth-pending-callback"
  7421. type: "must-survive-auth-rerender"
  7422. rank: "must-inspect"
  7423. condition: "OAuth refresh may update credentials and products but must preserve purchase_funnel_id, upgrade_source, and entry plan state."
  7424. - from: "state.coding-plan-purchase-funnel"
  7425. to: "service.telemetry-core"
  7426. type: "reports-through-existing-route"
  7427. rank: "must-inspect"
  7428. condition: "Upgrade, product, cycle, pay, and result events reuse the same funnel context."
  7429. - from: "surface.off-peak-creation"
  7430. to: "service.off-peak-task"
  7431. type: "commits-to"
  7432. rank: "must-inspect"
  7433. condition: "Creation returns a structured business result before best-effort telemetry and never exposes raw errors."
  7434. - from: "service.off-peak-task"
  7435. to: "capability.off-peak-model-execution"
  7436. type: "dispatches"
  7437. rank: "must-inspect"
  7438. condition: "The scheduler supplies a standard idle ModelSelection plus request auth, ticket, attribution, and optional child override; it does not construct a Provider snapshot after M4."
  7439. - from: "service.off-peak-task"
  7440. to: "capability.provider-registry"
  7441. type: "reads-current-eligibility"
  7442. rank: "must-inspect"
  7443. condition: "start only waits for readiness; Host credentials use the latest completed snapshot and Registry View revisions invalidate the shared UI eligibility check."
  7444. - from: "capability.off-peak-model-execution"
  7445. to: "capability.provider-registry"
  7446. type: "creates-model-through"
  7447. rank: "must-inspect"
  7448. condition: "The complete hidden idle Provider may be preflighted through the ordinary Registry before dispatch and is finally validated when the ordinary ModelFactory builds the Model; no execution Registry or temporary Provider source exists."
  7449. - from: "capability.off-peak-model-execution"
  7450. to: "capability.model-capabilities"
  7451. type: "reads-effective-model-config-from"
  7452. rank: "must-inspect"
  7453. condition: "Context, output limits, input/output formats, options, and reasoning mappings come from Built-in Model Config Rules rather than Host inference."
  7454. - from: "capability.off-peak-model-execution"
  7455. to: "capability.subagents"
  7456. type: "overrides-owned-child-selection-for"
  7457. rank: "must-inspect"
  7458. condition: "Each foreground/background child creates its own Model with the idle selection and request auth. Running child rounds keep their model; after user takeover, subsequent resumes and wakeups use the accepted user selection."
  7459. - from: "capability.off-peak-model-execution"
  7460. to: "state.off-peak-turn-attribution"
  7461. type: "attributes-actual-model-through"
  7462. rank: "must-inspect"
  7463. condition: "Usage, trace, and errors retain the actual idle providerId/modelId while offPeakTaskId and ticket remain execution dimensions."
  7464. - from: "capability.off-peak-model-execution"
  7465. to: "boundary.desktop-continuous"
  7466. type: "must-not-change-delivery-semantics"
  7467. rank: "invariant-only"
  7468. - from: "capability.off-peak-model-execution"
  7469. to: "boundary.web-remote-replayable"
  7470. type: "must-not-change-recovery-semantics"
  7471. rank: "invariant-only"
  7472. condition: "The narrow execution context is not replayable session state and does not create a mobile Off-Peak product path."
  7473. - from: "service.off-peak-task"
  7474. to: "state.off-peak-turn-attribution"
  7475. type: "dispatches-with-stable-identity"
  7476. rank: "must-inspect"
  7477. condition: "Every automatic turn has a distinct message identity while preserving the stable offPeakTaskId across one or more talks."
  7478. - from: "state.off-peak-turn-attribution"
  7479. to: "service.telemetry-core"
  7480. type: "reports-through-existing-route"
  7481. rank: "must-inspect"
  7482. condition: "Desktop uses the active ZCode business telemetry route; Web remains no-op and no reliable outbox is introduced."
  7483. - from: "state.off-peak-turn-attribution"
  7484. to: "boundary.desktop-continuous"
  7485. type: "must-not-change-delivery-semantics"
  7486. rank: "invariant-only"
  7487. - from: "state.off-peak-turn-attribution"
  7488. to: "boundary.web-remote-replayable"
  7489. type: "must-not-change-recovery-semantics"
  7490. rank: "invariant-only"
  7491. - from: "state.subagent-form-draft"
  7492. to: "state.conversation-projection"
  7493. type: "must-remain-isolated-from"
  7494. rank: "invariant-only"
  7495. - from: "capability.conversation-runtime"
  7496. to: "boundary.desktop-continuous"
  7497. type: "delivered-by"
  7498. rank: "conditional"
  7499. condition: "Desktop local main path."
  7500. - from: "capability.conversation-runtime"
  7501. to: "boundary.web-remote-replayable"
  7502. type: "recovers-via"
  7503. rank: "conditional"
  7504. condition: "Mobile web remote path."
  7505. - from: "capability.remote-delivery"
  7506. to: "service.shared-host-attachment"
  7507. type: "implemented-by"
  7508. rank: "must-inspect"
  7509. - from: "capability.remote-delivery"
  7510. to: "surface.mobile-remote-task-home"
  7511. type: "renders-in"
  7512. rank: "must-inspect"
  7513. - from: "capability.remote-delivery"
  7514. to: "surface.desktop-web-remote-control-dialog"
  7515. type: "renders-in"
  7516. rank: "must-inspect"
  7517. - from: "surface.desktop-web-remote-control-dialog"
  7518. to: "service.desktop-web-remote-control-authorization"
  7519. type: "commits-start-and-reset-through"
  7520. rank: "must-inspect"
  7521. - from: "service.desktop-web-remote-control-authorization"
  7522. to: "service.shared-host-attachment"
  7523. type: "dispatches-start-before"
  7524. rank: "must-inspect"
  7525. - from: "surface.mobile-remote-task-home"
  7526. to: "state.web-remote-task-target-projection"
  7527. type: "projects-from"
  7528. rank: "must-inspect"
  7529. - from: "state.web-remote-task-target-projection"
  7530. to: "state.task-list-row-projection"
  7531. type: "derives-live-activity-from"
  7532. rank: "must-inspect"
  7533. condition: "When a row carries sessions-index activity, its phase overrides contradictory renderer runtime and persisted status caches for every user-visible display state."
  7534. - from: "state.web-remote-task-target-projection"
  7535. to: "boundary.web-remote-replayable"
  7536. type: "delivered-by"
  7537. rank: "must-inspect"
  7538. - from: "state.web-remote-task-target-projection"
  7539. to: "boundary.desktop-continuous"
  7540. type: "must-not-change-delivery-semantics"
  7541. rank: "invariant-only"
  7542. - from: "state.web-remote-task-target-projection"
  7543. to: "boundary.workspace-key"
  7544. type: "isolated-by"
  7545. rank: "must-inspect"
  7546. - from: "boundary.web-remote-replayable"
  7547. to: "service.shared-host-attachment"
  7548. type: "attaches-through"
  7549. rank: "must-inspect"
  7550. - from: "boundary.web-remote-replayable"
  7551. to: "boundary.desktop-continuous"
  7552. type: "must-remain-isolated-from"
  7553. rank: "invariant-only"
  7554. - from: "capability.workspace-identity"
  7555. to: "service.workspace-identity-builder"
  7556. type: "implemented-by"
  7557. rank: "must-inspect"
  7558. - from: "capability.remote-file-actions"
  7559. to: "surface.git-review-file-actions"
  7560. type: "renders-in"
  7561. rank: "must-inspect"
  7562. - from: "capability.remote-file-actions"
  7563. to: "surface.project-task-list"
  7564. type: "renders-in"
  7565. rank: "must-inspect"
  7566. - from: "surface.git-review-file-actions"
  7567. to: "shared-ui.remote-file-context-actions"
  7568. type: "commits-to"
  7569. rank: "must-inspect"
  7570. - from: "surface.project-task-list"
  7571. to: "shared-ui.remote-file-context-actions"
  7572. type: "commits-to"
  7573. rank: "must-inspect"
  7574. - from: "shared-ui.remote-file-context-actions"
  7575. to: "capability.workspace-identity"
  7576. type: "resolves-target-with"
  7577. rank: "must-inspect"
  7578. condition: "Remote file actions must match workspaceIdentity and remoteSessionId before passing a sanitized WSL or SSH target to the platform boundary."
  7579. - from: "capability.prompt-attachment-materialization"
  7580. to: "surface.conversation-composer-attachments"
  7581. type: "renders-in"
  7582. rank: "must-inspect"
  7583. - from: "surface.conversation-composer-attachments"
  7584. to: "service.prompt-attachment-transfer"
  7585. type: "commits-to"
  7586. rank: "must-inspect"
  7587. condition: "Host-local attachments with any non-empty workspaceIdentity, including identities unknown to the current parser, must wait for remoteSessionId and stage before send admission."
  7588. - from: "capability.prompt-attachment-materialization"
  7589. to: "boundary.workspace-key"
  7590. type: "isolated-by"
  7591. rank: "must-inspect"
  7592. - from: "capability.prompt-attachment-materialization"
  7593. to: "boundary.web-remote-replayable"
  7594. type: "must-remain-isolated-from"
  7595. rank: "invariant-only"
  7596. condition: "Renderer-local upload progress is not replayable task state; mobile keeps using the attached shared host."
  7597. - from: "capability.video-input"
  7598. to: "capability.prompt-attachment-materialization"
  7599. type: "uses"
  7600. rank: "must-inspect"
  7601. - from: "capability.video-input"
  7602. to: "capability.model-capabilities"
  7603. type: "validates-effective-capability-with"
  7604. rank: "must-inspect"
  7605. condition: "Provider-visible video requires both model support and a provider adapter wire format that can encode video."
  7606. - from: "capability.video-input"
  7607. to: "persistence.session-media-artifacts"
  7608. type: "persists-provider-neutral-source-to"
  7609. rank: "must-inspect"
  7610. condition: "Session messages and completed tool parts persist artifact references and media metadata; the current provider base64 wire payload is derived at request time rather than stored as the sole fact."
  7611. - from: "capability.video-input"
  7612. to: "surface.conversation-sent-media-preview"
  7613. type: "renders-in"
  7614. rank: "must-inspect"
  7615. condition: "Sent image/video attachments in one user message share an ordered gallery with wrapping previous/next and keyboard navigation; composer and sent grid video thumbnails share a centered translucent blurred circular play affordance; visible mounted rows resolve exact-row video preview sources artifact-first, with Desktop local workspaces playing artifact/local_ref paths only after Host asks Main to authorize their canonical paths, while remote or unavailable-path cases use bounded chunked Blob URLs; image-only transform/download controls stay isolated from native video playback, and decode/read failure changes only the active preview item rather than input semantics."
  7616. - from: "capability.video-input"
  7617. to: "surface.conversation-composer-attachments"
  7618. type: "renders-in"
  7619. rank: "must-inspect"
  7620. condition: "Composer image/video attachments with local object URLs share the same ordered media gallery and starting-index behavior; preview navigation must not mutate upload, removal, or send state."
  7621. - from: "surface.conversation-sent-media-preview"
  7622. to: "persistence.session-media-artifacts"
  7623. type: "reads-exact-row-artifact-from"
  7624. rank: "must-inspect"
  7625. condition: "The CLI authorizes row identity and attachment index. Desktop local preview prefers an artifact-derived .zcode media path, uses an authorized metadata-only local_ref only when no artifact exists, and Host registers the selected realpath with Main before renderer playback; arbitrary absolute paths in renderer URLs remain denied. Artifact path materialization failure still falls back only to chunked artifact bytes."
  7626. - from: "surface.conversation-sent-media-preview"
  7627. to: "boundary.web-remote-replayable"
  7628. type: "must-not-change-recovery-semantics"
  7629. rank: "invariant-only"
  7630. condition: "Only Desktop local workspaces request local media paths. Web/mobile and remote workspaces retain the attached-host chunk query; relay and main do not own session/replay state or start another runtime."
  7631. - from: "persistence.session-media-artifacts"
  7632. to: "capability.model-selection"
  7633. type: "rehydrates-for-current-provider"
  7634. rank: "must-inspect"
  7635. condition: "In-conversation model switches and cold resume rebuild media from durable artifacts, then derive the current provider base64 request shape."
  7636. - from: "persistence.session-media-artifacts"
  7637. to: "boundary.web-remote-replayable"
  7638. type: "must-not-change-recovery-semantics"
  7639. rank: "invariant-only"
  7640. condition: "Media artifacts remain shared-host session facts; relay and mobile replayable state do not become binary owners or start a second runtime."
  7641. - from: "capability.video-input"
  7642. to: "boundary.web-remote-replayable"
  7643. type: "must-not-change-recovery-semantics"
  7644. rank: "invariant-only"
  7645. condition: "Video payload support does not move task, stream, queue, or snapshot ownership into the mobile replayable boundary."
  7646. - from: "service.workspace-identity-builder"
  7647. to: "boundary.workspace-key"
  7648. type: "produces"
  7649. rank: "must-inspect"
  7650. - from: "capability.remote-delivery"
  7651. to: "boundary.workspace-key"
  7652. type: "isolated-by"
  7653. rank: "conditional"
  7654. - from: "capability.task-persistence"
  7655. to: "persistence.task-index"
  7656. type: "indexed-by"
  7657. rank: "must-inspect"
  7658. - from: "capability.task-persistence"
  7659. to: "surface.project-task-list"
  7660. type: "renders-in"
  7661. rank: "must-inspect"
  7662. - from: "capability.task-title-overflow-marquee"
  7663. to: "shared-ui.task-title-overflow-text"
  7664. type: "implemented-by"
  7665. rank: "must-inspect"
  7666. - from: "capability.task-title-overflow-marquee"
  7667. to: "surface.project-task-list"
  7668. type: "renders-in"
  7669. rank: "must-inspect"
  7670. - from: "capability.task-title-overflow-marquee"
  7671. to: "surface.pinned-task-list"
  7672. type: "renders-in"
  7673. rank: "must-inspect"
  7674. - from: "capability.task-title-overflow-marquee"
  7675. to: "surface.mobile-remote-task-home"
  7676. type: "shares-static-overflow-structure-with"
  7677. rank: "conditional"
  7678. condition: "Touch has no stable hover contract; mobile reuses static overflow DOM and mask only."
  7679. - from: "shared-ui.task-title-overflow-text"
  7680. to: "state.task-list-row-projection"
  7681. type: "renders-title-from"
  7682. rank: "should-inspect"
  7683. condition: "Presentation must not mutate membership, navigation, activity, or workspace identity."
  7684. - from: "capability.task-persistence"
  7685. to: "surface.pinned-task-list"
  7686. type: "renders-in"
  7687. rank: "must-inspect"
  7688. - from: "surface.project-task-list"
  7689. to: "state.task-list-row-projection"
  7690. type: "projects-from"
  7691. rank: "must-inspect"
  7692. - from: "surface.pinned-task-list"
  7693. to: "state.task-list-row-projection"
  7694. type: "projects-from"
  7695. rank: "must-inspect"
  7696. - from: "state.task-list-row-projection"
  7697. to: "service.zcode-task-list"
  7698. type: "queries-through"
  7699. rank: "must-inspect"
  7700. - from: "capability.conversation-runtime"
  7701. to: "service.zcode-task-index-syncer"
  7702. type: "publishes-visible-task-summary-to"
  7703. rank: "must-inspect"
  7704. condition: "A persisted fork child must publish its hydrated non-draft summary without waiting for another runtime event or process restart."
  7705. - from: "service.zcode-task-index-syncer"
  7706. to: "persistence.task-index"
  7707. type: "persists-visible-task-row-to"
  7708. rank: "must-inspect"
  7709. condition: "The first non-draft summary creates exactly one task row and emits task_created for task-list cache invalidation."
  7710. - from: "service.zcode-task-list"
  7711. to: "persistence.task-index"
  7712. type: "reads-writes"
  7713. rank: "must-inspect"
  7714. - from: "persistence.task-index"
  7715. to: "boundary.workspace-key"
  7716. type: "isolated-by"
  7717. rank: "must-inspect"
  7718. condition: "Task-index reads keep SQLite entity coordinates authoritative over stale meta_json and recover legacy remote identity only from a valid remote workspace_key."
  7719. - from: "state.task-list-row-projection"
  7720. to: "state.conversation-projection"
  7721. type: "enriched-by"
  7722. rank: "should-inspect"
  7723. condition: "Conversation and sessions-index facts enrich activity/detail but do not own row membership."
  7724. - from: "state.task-list-row-projection"
  7725. to: "boundary.workspace-key"
  7726. type: "isolated-by"
  7727. rank: "must-inspect"
  7728. - from: "persistence.task-index"
  7729. to: "state.conversation-projection"
  7730. type: "must-not-authorize"
  7731. rank: "invariant-only"
  7732. condition: "Task index metadata is not the authority for session content or current runtime settings."
  7733. - from: "capability.mcp-async-tool-catalog"
  7734. to: "state.mcp-tool-catalog-cache"
  7735. type: "cached-by"
  7736. rank: "must-inspect"
  7737. - from: "capability.mcp-async-tool-catalog"
  7738. to: "service.mcp-session-runtime"
  7739. type: "executes-through"
  7740. rank: "must-inspect"
  7741. condition: "Cached catalog entries advertise tools only; every invocation must wait for and resolve against the current session live MCP runtime, and stale issued contracts remain resolvable through provider-invisible tombstones."
  7742. - from: "state.mcp-tool-catalog-cache"
  7743. to: "service.mcp-session-runtime"
  7744. type: "advertises-before-live-readiness-of"
  7745. rank: "must-inspect"
  7746. condition: "A complete fresh stdio catalog may unblock provider sampling while the independent session-scoped live runtime is still starting."
  7747. - from: "service.mcp-session-runtime"
  7748. to: "capability.conversation-runtime"
  7749. type: "provides-tools-to"
  7750. rank: "must-inspect"
  7751. - from: "surface.customize-capability-settings"
  7752. to: "state.mcp-tool-catalog-cache"
  7753. type: "must-not-project-readiness-from"
  7754. rank: "invariant-only"
  7755. condition: "MCP settings status remains a live control-plane fact; a catalog hit must never render as connected."
  7756. - from: "state.mcp-tool-catalog-cache"
  7757. to: "boundary.workspace-key"
  7758. type: "isolated-by"
  7759. rank: "must-inspect"
  7760. condition: "Catalog identity uses workspaceIdentity?.trim() || workspacePath; Phase 2 keeps every remote lookup unsupported, and remote cache may be enabled only after real workspace and remote-session identity reach the runtime."
  7761. - from: "capability.mcp-async-tool-catalog"
  7762. to: "capability.subagents"
  7763. type: "must-preserve-live-borrowing-for"
  7764. rank: "invariant-only"
  7765. condition: "Subagents inherit the parent connected, scope-filtered live snapshot and never gain execution authority from advertisement cache."
  7766. - from: "capability.mcp-async-tool-catalog"
  7767. to: "boundary.desktop-continuous"
  7768. type: "must-not-change-delivery"
  7769. rank: "invariant-only"
  7770. - from: "capability.mcp-async-tool-catalog"
  7771. to: "boundary.web-remote-replayable"
  7772. type: "must-not-change-delivery"
  7773. rank: "invariant-only"
  7774. - from: "capability.mcp-async-tool-catalog"
  7775. to: "evidence.mcp-runtime-tests"
  7776. type: "covered-by"
  7777. rank: "evidence-only"
  7778. - from: "capability.conversation-runtime"
  7779. to: "evidence.conversation-catalog"
  7780. type: "covered-by"
  7781. rank: "evidence-only"
  7782. - from: "capability.composer-trigger-routing"
  7783. to: "surface.composer-at-context-picker"
  7784. type: "renders-in"
  7785. rank: "must-inspect"
  7786. condition: "The @ primary groups are ordered Plugins, files, sessions, then retained Whiteboards; its sessions group remains current-workspace only. # remains a compatible sessions trigger and aggregates opened/restored workspace scopes that share the current Agent service/session-store authority, while foreign or disconnected remote authorities stay excluded."
  7787. - from: "capability.composer-trigger-routing"
  7788. to: "surface.composer-slash-capability-picker"
  7789. type: "renders-in"
  7790. rank: "must-inspect"
  7791. condition: "The slash groups remain commands, Skills, then Subagents; $ and Yen aliases remain compatible Skills triggers."
  7792. - from: "capability.composer-trigger-routing"
  7793. to: "surface.composer-skill-compatibility-picker"
  7794. type: "renders-in"
  7795. rank: "must-inspect"
  7796. condition: "$ and Yen aliases route to the same provider-filtered Skill catalog as the slash Skills group without changing canonical Skill mention Markdown."
  7797. - from: "capability.skill-catalog-discovery"
  7798. to: "service.workspace-skills-catalog"
  7799. type: "served-by"
  7800. rank: "must-inspect"
  7801. - from: "service.workspace-skills-catalog"
  7802. to: "persistence.skill-roots"
  7803. type: "reads-from"
  7804. rank: "must-inspect"
  7805. condition: "At every workspace ancestor through the worktree root, .zcode/skills and .agents/skills are merged; the presence of one root must not suppress the other. User and Plugin roots retain their existing discovery contracts."
  7806. - from: "capability.skill-catalog-discovery"
  7807. to: "capability.agent-core-runtime"
  7808. type: "must-match-discovery-roots-of"
  7809. rank: "must-inspect"
  7810. condition: "Host/UI catalog discovery and Agent runtime discovery merge the same workspace .zcode/skills and .agents/skills roots so visible references match executable capabilities."
  7811. - from: "capability.skill-catalog-discovery"
  7812. to: "surface.customize-capability-settings"
  7813. type: "renders-in"
  7814. rank: "must-inspect"
  7815. - from: "capability.skill-catalog-discovery"
  7816. to: "surface.composer-slash-capability-picker"
  7817. type: "renders-in"
  7818. rank: "must-inspect"
  7819. - from: "capability.skill-catalog-discovery"
  7820. to: "surface.composer-skill-compatibility-picker"
  7821. type: "renders-in"
  7822. rank: "must-inspect"
  7823. - from: "capability.skill-catalog-discovery"
  7824. to: "evidence.skill-catalog-discovery-tests"
  7825. type: "covered-by"
  7826. rank: "evidence-only"
  7827. - from: "capability.plan-slash-shortcut"
  7828. to: "surface.composer-slash-capability-picker"
  7829. type: "renders-in"
  7830. rank: "must-inspect"
  7831. condition: "The app protocol catalog exposes /plan [task] for desktop, Web, and /remote Composer surfaces; selection inserts the command token and does not execute it."
  7832. - from: "capability.plan-slash-shortcut"
  7833. to: "state.conversation-projection"
  7834. type: "commits-through"
  7835. rank: "must-inspect"
  7836. condition: "A task-bearing shortcut commits the existing mode CAS before ordinary sendText; an empty shortcut only changes mode and creates no user/provider turn."
  7837. - from: "capability.plan-slash-shortcut"
  7838. to: "capability.conversation-runtime"
  7839. type: "depends-on"
  7840. rank: "must-inspect"
  7841. condition: "The shortcut is syntactic sugar over switchCollaborationMode, createSession config.mode, and sendText; it adds no wire command, queue, or persistence authority."
  7842. - from: "capability.plan-slash-shortcut"
  7843. to: "boundary.workspace-key"
  7844. type: "preserves-execution-scope"
  7845. rank: "invariant-only"
  7846. condition: "Workspace identity continues to use workspaceIdentity?.trim() || workspacePath, with remoteSessionId carried by existing session routing."
  7847. - from: "capability.plan-slash-shortcut"
  7848. to: "boundary.desktop-continuous"
  7849. type: "must-not-change-delivery"
  7850. rank: "invariant-only"
  7851. - from: "capability.plan-slash-shortcut"
  7852. to: "boundary.web-remote-replayable"
  7853. type: "must-not-change-delivery"
  7854. rank: "invariant-only"
  7855. - from: "capability.plan-slash-shortcut"
  7856. to: "evidence.conversation-catalog"
  7857. type: "covered-by"
  7858. rank: "evidence-only"
  7859. - from: "capability.selection-side-chat"
  7860. to: "surface.conversation-selection-side-slash"
  7861. type: "renders-in"
  7862. rank: "must-inspect"
  7863. condition: "App-local /side and /btw remain available for created desktop parent sessions, including running parents; draft, selection-side-chat, read-only, and mobile viewport surfaces remain hidden. CLI same-name commands win."
  7864. - from: "surface.conversation-selection-side-slash"
  7865. to: "state.conversation-projection"
  7866. type: "validates-with"
  7867. rank: "must-inspect"
  7868. condition: "The submit path consumes only text-only arguments and rechecks the current parent session before dispatch; attachments and structured composer contexts remain on the normal parent send path."
  7869. - from: "surface.conversation-selection-side-slash"
  7870. to: "service.selection-side-session-creation"
  7871. type: "commits-to"
  7872. rank: "must-inspect"
  7873. condition: "A bare selected command removes its active token and creates an empty child; an argument-bearing submit dispatches createSelectionSideSession with firstInput text and never sends that text to the parent."
  7874. - from: "service.selection-side-session-creation"
  7875. to: "capability.conversation-runtime"
  7876. type: "creates-child-in"
  7877. rank: "must-inspect"
  7878. - from: "capability.selection-side-chat"
  7879. to: "boundary.web-remote-replayable"
  7880. type: "must-remain-hidden-from-mobile-viewport"
  7881. rank: "invariant-only"
  7882. - from: "capability.selection-side-chat"
  7883. to: "evidence.conversation-catalog"
  7884. type: "covered-by"
  7885. rank: "evidence-only"
  7886. - from: "capability.session-skill-catalog"
  7887. to: "surface.composer-slash-capability-picker"
  7888. type: "renders-in"
  7889. rank: "must-inspect"
  7890. condition: "Slash Skills and the compatible $, ¥, and ¥ triggers share one catalog authority and retain the existing canonical Skill mention."
  7891. - from: "capability.session-skill-catalog"
  7892. to: "state.session-skill-catalog"
  7893. type: "state-owned-by"
  7894. rank: "must-inspect"
  7895. condition: "A resident Session reads the Skill outcome frozen by its AgentRuntime context initialization; cold resume creates a new runtime and catalog."
  7896. - from: "capability.session-skill-catalog"
  7897. to: "service.skill-reference-catalog"
  7898. type: "served-by"
  7899. rank: "must-inspect"
  7900. condition: "A draft without prewarm reads current workspace discovery; once prewarm is ready its prewarmSessionId selects that runtime's frozen catalog. Formal Session requests use sessionId and fail closed when the runtime is absent."
  7901. - from: "capability.session-skill-catalog"
  7902. to: "capability.conversation-runtime"
  7903. type: "depends-on"
  7904. rank: "should-inspect"
  7905. condition: "Runtime restart advances the Picker request identity and discards results from the previous runtime without changing conversation delivery semantics."
  7906. - from: "capability.session-skill-catalog"
  7907. to: "boundary.workspace-key"
  7908. type: "depends-on"
  7909. rank: "invariant-only"
  7910. condition: "Catalog isolation uses workspaceIdentity fallback plus remoteSessionId; workspacePath remains the filesystem discovery target."
  7911. - from: "capability.session-skill-catalog"
  7912. to: "boundary.desktop-continuous"
  7913. type: "must-not-change-delivery"
  7914. rank: "invariant-only"
  7915. - from: "capability.session-skill-catalog"
  7916. to: "boundary.web-remote-replayable"
  7917. type: "must-not-change-delivery"
  7918. rank: "invariant-only"
  7919. - from: "capability.session-skill-catalog"
  7920. to: "evidence.conversation-catalog"
  7921. type: "covered-by"
  7922. rank: "evidence-only"
  7923. - from: "capability.composer-trigger-routing"
  7924. to: "capability.conversation-runtime"
  7925. type: "must-not-change-canonical-input-for"
  7926. rank: "invariant-only"
  7927. condition: "Discovery triggers may change grouping, but selected items retain their existing plugin, file, session, Whiteboard, command, Skill, and Subagent canonical Markdown."
  7928. - from: "capability.composer-trigger-routing"
  7929. to: "evidence.conversation-catalog"
  7930. type: "covered-by"
  7931. rank: "evidence-only"
  7932. - from: "capability.plugin-source-acquisition"
  7933. to: "service.plugin-source-materializer"
  7934. type: "served-by"
  7935. rank: "must-inspect"
  7936. condition: "Public github.com HTTPS sources use bounded secure Archive extraction; private, SSH, non-GitHub and advanced Git semantics retain the system Git path."
  7937. - from: "capability.plugin-source-acquisition"
  7938. to: "persistence.plugin-marketplace-installed-cache"
  7939. type: "persists-to"
  7940. rank: "must-inspect"
  7941. condition: "Validated Marketplace snapshots and installed plugin trees activate through same-volume staging, backup, rename and rollback; refresh failure preserves the last successful snapshot."
  7942. - from: "capability.plugin-source-acquisition"
  7943. to: "boundary.plugin-agent-host"
  7944. type: "executes-through"
  7945. rank: "must-inspect"
  7946. condition: "Desktop local, standalone CLI and SSH/WSL/Docker workspace operations all execute in the authoritative workspace Agent Host; bundling Git in Desktop would not satisfy remote hosts."
  7947. - from: "persistence.plugin-marketplace-installed-cache"
  7948. to: "capability.plugin-reference"
  7949. type: "read-by"
  7950. rank: "invariant-only"
  7951. condition: "Startup discovery, enable state and session injection remain offline cache reads and never trigger Git or HTTP source refresh."
  7952. - from: "capability.plugin-source-acquisition"
  7953. to: "evidence.plugin-source-acquisition-tests"
  7954. type: "covered-by"
  7955. rank: "evidence-only"
  7956. - from: "capability.plugin-source-acquisition"
  7957. to: "capability.workspace-identity"
  7958. type: "constrained-by"
  7959. rank: "invariant-only"
  7960. condition: "Remote workspace authority continues to use workspaceIdentity and remoteSessionId; source acquisition does not introduce path-only identity keys."
  7961. - from: "capability.plugin-catalog-runtime-separation"
  7962. to: "persistence.plugin-marketplace-installed-cache"
  7963. type: "separates-catalog-from-runtime"
  7964. rank: "must-inspect"
  7965. condition: "Bundled Catalog and immutable official cache remain readable after builtin uninstall; cache presence never implies Runtime discovery or enablement."
  7966. - from: "capability.plugin-catalog-runtime-separation"
  7967. to: "state.plugin-runtime-suppression"
  7968. type: "must-preserve-runtime-contract"
  7969. rank: "must-inspect"
  7970. condition: "suppressedBuiltins is the only builtin Runtime suppression truth; Catalog and describe never mutate it."
  7971. - from: "state.plugin-runtime-suppression"
  7972. to: "service.plugin-catalog-detail"
  7973. type: "must-not-mutate"
  7974. rank: "invariant-only"
  7975. condition: "plugins/describe is read-only for suppressed builtins and does not restore, enable, or create an installed record."
  7976. - from: "service.plugin-catalog-detail"
  7977. to: "persistence.plugin-marketplace-installed-cache"
  7978. type: "reads-catalog-source-through"
  7979. rank: "must-inspect"
  7980. condition: "filesystem/SEA is normalized at the seed boundary; adapters consume the materialized cachePath for component enumeration."
  7981. - from: "capability.plugin-catalog-runtime-separation"
  7982. to: "boundary.plugin-agent-host"
  7983. type: "executes-through"
  7984. rank: "must-inspect"
  7985. condition: "Local and remote Agent Host authority remains unchanged; no second runtime is created for detail or restore."
  7986. - from: "capability.plugin-catalog-runtime-separation"
  7987. to: "evidence.plugin-catalog-runtime-tests"
  7988. type: "covered-by"
  7989. rank: "evidence-only"
  7990. - from: "capability.workspace-project-plugin-scope"
  7991. to: "surface.workspace-plugin-scope-controls"
  7992. type: "renders-in"
  7993. rank: "must-inspect"
  7994. condition: "User and Workspace are configuration views over Host-available Plugins, not mutually exclusive ownership lists. User reads User/default state; Workspace reads effective merged state. Marketplace has no config scope, installs to User, and returns to the concrete origin scopeKey."
  7995. - from: "surface.workspace-plugin-scope-controls"
  7996. to: "capability.workspace-identity"
  7997. type: "preserves-return-scope-through"
  7998. rank: "must-inspect"
  7999. condition: "Settings -> Marketplace -> Settings navigation carries returnScopeKey=workspaceIdentity?.trim() || workspacePath; missing or disconnected targets fall back to User."
  8000. - from: "capability.workspace-project-plugin-scope"
  8001. to: "persistence.workspace-plugin-project-config"
  8002. type: "persists-shared-declaration-to"
  8003. rank: "must-inspect"
  8004. condition: "Tracked .zcode/config.json owns project enabledPlugins, extraKnownMarketplaces and plaintext options/credentials/secrets; it never owns package bytes or Plugin data."
  8005. - from: "persistence.workspace-plugin-project-config"
  8006. to: "state.workspace-plugin-effective-config"
  8007. type: "merges-into"
  8008. rank: "must-inspect"
  8009. condition: "Plugin enabled maps merge per Plugin ID; options, including sensitive values, merge per Plugin ID and option key."
  8010. - from: "capability.workspace-project-plugin-scope"
  8011. to: "boundary.workspace-plugin-trust"
  8012. type: "explicitly-bypasses"
  8013. rank: "must-inspect"
  8014. condition: "Workspace Plugin fields, Marketplace declarations and project roots enter discovery without Workspace trust or Plugin MCP approval; this exception must not widen to top-level project hooks, MCP or Subagent config."
  8015. - from: "boundary.workspace-plugin-trust"
  8016. to: "state.workspace-plugin-effective-config"
  8017. type: "does-not-filter"
  8018. rank: "must-inspect"
  8019. condition: "No trust or Plugin MCP approval state filters Workspace Plugin config; valid Plugin Hook/Skill/Command/Agent/MCP components all enter runtime, while manifest/schema/path validation remains fail-closed."
  8020. - from: "capability.workspace-project-plugin-scope"
  8021. to: "boundary.workspace-plugin-sensitive-config"
  8022. type: "allows"
  8023. rank: "must-inspect"
  8024. condition: "Workspace config may persist ordinary and sensitive Plugin options in plaintext; sensitive metadata masks UI, displays the Git risk warning and restricts template expansion but does not block persistence."
  8025. - from: "boundary.workspace-plugin-sensitive-config"
  8026. to: "state.workspace-plugin-effective-config"
  8027. type: "merges-into"
  8028. rank: "must-inspect"
  8029. condition: "Workspace option keys override User by Plugin ID and option key; sensitive values may reach MCP env/header/clientSecret and other valid Plugin runtime fields while logs, diagnostics, provider captures and mobile replay artifacts stay redacted."
  8030. - from: "state.workspace-plugin-effective-config"
  8031. to: "persistence.plugin-marketplace-installed-cache"
  8032. type: "resolves-installed-package-from"
  8033. rank: "must-inspect"
  8034. condition: "Project enable is a declaration, not an install transaction; a missing target-Host package remains missing until the user explicitly installs it."
  8035. - from: "state.workspace-plugin-effective-config"
  8036. to: "state.plugin-reference-session-catalog"
  8037. type: "snapshots-into"
  8038. rank: "must-inspect"
  8039. condition: "New Session Apps and safely cold-resumed Apps freeze the latest effective Plugin capabilities and options; resident Apps do not hot-load config or package changes."
  8040. - from: "capability.workspace-project-plugin-scope"
  8041. to: "boundary.plugin-agent-host"
  8042. type: "executes-through"
  8043. rank: "must-inspect"
  8044. condition: "Local and remote project files are read from the target workspacePath on the authoritative Agent Host; one window Local Host routes remote workspaces through RemoteConnectionRegistry without a Remote Host process."
  8045. - from: "capability.workspace-project-plugin-scope"
  8046. to: "capability.workspace-identity"
  8047. type: "isolates-through"
  8048. rank: "must-inspect"
  8049. condition: "Filesystem reads use workspacePath; UI requests, async results, caches and Session association use workspaceIdentity?.trim() || workspacePath, with remoteSessionId preserved."
  8050. - from: "capability.workspace-project-plugin-scope"
  8051. to: "boundary.web-remote-replayable"
  8052. type: "reuses-shared-host-in"
  8053. rank: "invariant-only"
  8054. condition: "Mobile /remote reuses the attached desktop/window Host effective Plugin set and creates no independent Plugin runtime, config or install store."
  8055. - from: "capability.workspace-project-plugin-scope"
  8056. to: "evidence.workspace-project-plugin-cases"
  8057. type: "covered-by"
  8058. rank: "evidence-only"
  8059. - from: "capability.plugin-reference"
  8060. to: "surface.composer-mention-plugins"
  8061. type: "renders-in"
  8062. rank: "must-inspect"
  8063. - from: "surface.composer-mention-plugins"
  8064. to: "surface.composer-at-context-picker"
  8065. type: "nested-in"
  8066. rank: "must-inspect"
  8067. condition: "Plugins are the first primary @ group while the Plugin chip and plugin:// carrier remain unchanged."
  8068. - from: "capability.plugin-reference"
  8069. to: "surface.plugin-store-example-prompt-try"
  8070. type: "renders-in"
  8071. rank: "must-inspect"
  8072. condition: "For an installed Plugin, Try now starts a standard root draft with only the canonical plugin:// mention, while an example prompt appends the listing prompt; neither auto-sends, and disabled Plugin runtime eligibility remains unchanged."
  8073. - from: "surface.plugin-store-example-prompt-try"
  8074. to: "capability.conversation-runtime"
  8075. type: "commits-via"
  8076. rank: "must-inspect"
  8077. condition: "Both entries delegate to Root onCreateTask initialPrompt so workspace targeting, draft persistence, desktop workbench reset, and remote shared-host boundaries remain authoritative; an uninstalled Plugin shows Install instead of Try now, and example prompts only run the existing install action."
  8078. - from: "capability.plugin-reference"
  8079. to: "surface.new-task-suggested-prompts"
  8080. type: "renders-in"
  8081. rank: "must-inspect"
  8082. condition: "A Plugin-backed recommendation adds the canonical plugin:// carrier only when target Host trusted resolution reports the fixed stable ID ready; otherwise it prefills the plain prompt. The suggested flow does not read the workspace reference catalog."
  8083. - from: "surface.new-task-suggested-prompts"
  8084. to: "capability.conversation-runtime"
  8085. type: "commits-via"
  8086. rank: "must-inspect"
  8087. condition: "Clicking replaces the workspace-scoped renderer draft through requestComposerTextInsert, persists and focuses the Composer, and never auto-sends."
  8088. - from: "surface.new-task-suggested-prompts"
  8089. to: "service.client-scenes"
  8090. type: "options-from"
  8091. rank: "must-inspect"
  8092. condition: "Only draft-suggestion.options.prompts.items are mapped; legacy ai-writing is not a fallback, labels and contents retain cn/en values, iconName uses the non-localized img field as a Lucide canonical name and ignores imgs, unknown names fall back to SquareCode, defaults reverse-reference option items for an optional Plugin, and missing or failed configuration renders an empty list without a static fallback."
  8093. - from: "surface.new-task-suggested-prompts"
  8094. to: "capability.automations"
  8095. type: "opens-in"
  8096. rank: "must-inspect"
  8097. condition: "NAVIGATE:AUTOMATIONS opens the workspace Automations main view without prefilling; NAVIGATE:AUTOMATIONS:OFFPEAK also records automationTab=idle in renderer-local navigation history and selects Idle-time only after the visible tabs settle with idle present. The more specific action wins when both are declared, and mobile /remote filters both navigation entries."
  8098. - from: "surface.new-task-suggested-prompts"
  8099. to: "service.suggested-plugin-reference-resolution"
  8100. type: "validates-with"
  8101. rank: "must-inspect"
  8102. condition: "A recommendation without a Plugin writes immediately. A Plugin-backed recommendation performs one trusted resolution and one Composer replacement: initial ready writes the chip, optional display-only icon, and prompt together without opening a Popover; all other settled results write only the prompt. A renderer-local Composer revision guard drops the delayed write and follow-up feedback if the draft changes while resolving. Initial ready does not query a workspace reference catalog; install/enable success invalidates the deferred runtime and requires target Host trusted resolution to return ready before prepend. Missing Plugins refresh only zcode-plugins-official; the Agent emits operation-scoped refreshing after the first local miss and before network refresh, which makes the single anchored Plugin action Popover enter loading. Disabled results enter loading before the plain-prompt insert. Refresh is aborted and fails closed at 10000ms without exposing old snapshot candidates. After Composer consumes the plain prompt, the same PopoverContent changes from loading to install or enable confirmation. Confirmation has no automatic timeout: a primary pointer-down outside the Popover closes it and cancels that operation, while focus changes, inside interaction, loading, mutation progress, success, and error do not use this confirmation dismissal rule. Every Popover root, PopoverContent, and button anchor remains the same mounted instance across loading, confirmation, mutation progress, retry, success, and failure; a second Popover is never mounted. The outer border-box remains 240px wide but has no fixed height in any phase. Install and enable success replace progress with the same vertical rolling structure as RollingToolbarLabel: AnimatePresence popLayout, outgoing content y -0.75em, incoming success y 0.75em to 0 with opacity, 200ms and ease [0.4, 0, 0.2, 1], while reduced motion replaces content immediately. Success uses the operation-specific localized message and closes exactly 2000ms after it appears. Install error diagnostics, rejects, and timeout write a UI warning log plus a localized warning toast, replace the old operationId, and restore the same PopoverContent to confirmation while keeping the plain prompt and dropping late results. Enable failure retains the same anchored error result behavior. Manual prompt takeover dismisses the old Plugin action Popover without a cancellation notice. Refresh/install/enable remain bound to one cancellable operationId at a time; API Key, OAuth, and user config are outside this flow."
  8103. - from: "service.suggested-plugin-reference-resolution"
  8104. to: "capability.plugin-source-acquisition"
  8105. type: "served-by"
  8106. rank: "must-inspect"
  8107. condition: "Only a newly refreshed canonical zcode-plugins-official listing may become an install candidate; the previous successful snapshot is not sufficient after refresh failure."
  8108. - from: "service.suggested-plugin-reference-resolution"
  8109. to: "boundary.plugin-agent-host"
  8110. type: "executes-through"
  8111. rank: "must-inspect"
  8112. condition: "Resolution, refresh, User-scope installation, enablement, cancellation, and post-install catalog reads execute on the authoritative local or remote Agent Host selected by workspaceIdentity and remoteSessionId; trusted resolution carries both clientMode and deliveryKind without changing the existing desktop-continuous or web-remote-replayable profile."
  8113. - from: "service.suggested-plugin-reference-resolution"
  8114. to: "boundary.desktop-continuous"
  8115. type: "must-not-change-delivery"
  8116. rank: "invariant-only"
  8117. condition: "Desktop remains desktop-continuous; the operation does not create or send a Session."
  8118. - from: "service.suggested-plugin-reference-resolution"
  8119. to: "boundary.web-remote-replayable"
  8120. type: "must-not-change-delivery"
  8121. rank: "invariant-only"
  8122. condition: "Mobile remote control reuses the shared-host attachment and web-remote-replayable boundary; it never creates a separate Agent runtime."
  8123. - from: "surface.new-task-suggested-prompts"
  8124. to: "capability.workspace-identity"
  8125. type: "depends-on"
  8126. rank: "invariant-only"
  8127. condition: "The prefill request remains isolated by workspaceIdentity?.trim() || workspacePath and never writes a different local or remote draft."
  8128. - from: "capability.plugin-reference"
  8129. to: "state.plugin-reference-session-catalog"
  8130. type: "state-owned-by"
  8131. rank: "must-inspect"
  8132. - from: "capability.plugin-reference"
  8133. to: "service.plugin-reference-catalog"
  8134. type: "served-by"
  8135. rank: "must-inspect"
  8136. condition: "Picker state is request-identity scoped; workspace/session/remote attachment changes clear prior authority before loading and reject late results."
  8137. - from: "capability.plugin-reference"
  8138. to: "service.plugin-reference-reminder"
  8139. type: "served-by"
  8140. rank: "must-inspect"
  8141. condition: "Only persisted canonical displayInput is parsed; MCP live intersection excludes tools hidden by the current turn toolDisallowlist; Subagents require frozen declaration, a live profile, and Plugin-root provenance."
  8142. - from: "service.plugin-reference-reminder"
  8143. to: "persistence.plugin-reference-reminder-history"
  8144. type: "persists-to"
  8145. rank: "must-inspect"
  8146. condition: "Each generated reminder is appended as a model-only synthetic notice after its real user message."
  8147. - from: "persistence.plugin-reference-reminder-history"
  8148. to: "capability.conversation-runtime"
  8149. type: "hydrates-into"
  8150. rank: "must-inspect"
  8151. condition: "Cold resume and fork rebuild the original attachment text and causal order without re-resolving the current catalog or live inventory."
  8152. - from: "capability.plugin-reference"
  8153. to: "capability.conversation-runtime"
  8154. type: "depends-on"
  8155. rank: "should-inspect"
  8156. condition: "Reminder injection rides the turn-start pipeline; canonical message text stays unchanged."
  8157. - from: "capability.plugin-reference"
  8158. to: "capability.workspace-identity"
  8159. type: "depends-on"
  8160. rank: "should-inspect"
  8161. condition: "Catalog queries and caches key by workspaceIdentity?.trim() || workspacePath; remote picker reads the remote host store."
  8162. - from: "capability.plugin-reference"
  8163. to: "boundary.desktop-continuous"
  8164. type: "constrained-by"
  8165. rank: "invariant-only"
  8166. - from: "capability.plugin-reference"
  8167. to: "boundary.web-remote-replayable"
  8168. type: "constrained-by"
  8169. rank: "invariant-only"
  8170. condition: "Mobile remote reuses the shared-host session runtime; no independent plugin selection state crosses the carrier, and command clientMode comes from the host trusted connection carrier rather than renderer input."
  8171. - from: "capability.plugin-reference"
  8172. to: "evidence.conversation-catalog"
  8173. type: "covered-by"
  8174. rank: "evidence-only"
  8175. - from: "capability.stateless-browser-use-mcp"
  8176. to: "service.shared-browser-use-mcp-runtime"
  8177. type: "executes-through"
  8178. rank: "must-inspect"
  8179. condition: "Only the built-in stateless node_repl opts into workspace sharing; ordinary dual-era third-party MCP stays session-isolated by default."
  8180. - from: "capability.stateless-browser-use-mcp"
  8181. to: "capability.browser-use-agent-guidance"
  8182. type: "constrains-kernel-lifecycle-guidance-in"
  8183. rank: "must-inspect"
  8184. condition: "Stateless migration may replace only persistent-kernel and cross-cell binding guidance; all unrelated Browser Use planning, safety, observation, and tab lifecycle rules remain aligned with the pre-upgrade contract."
  8185. - from: "capability.stateless-browser-use-mcp"
  8186. to: "state.browser-context-handle-registry"
  8187. type: "routes-browser-commands-through"
  8188. rank: "must-inspect"
  8189. condition: "MCP transport frontend and JavaScript kernel remain stateless; browser continuity remains in the existing session-scoped BrowserControl/tab owner and is rediscovered by stable tab facts on every call."
  8190. - from: "state.browser-context-handle-registry"
  8191. to: "boundary.workspace-key"
  8192. type: "isolated-by"
  8193. rank: "must-inspect"
  8194. condition: "Every BrowserControlPort call resolves sessionId through the authoritative registry, then restores workspaceIdentity?.trim() || workspacePath, remoteSessionId, runtimeScope, and clientMode; no model-visible handle or workspace path authorizes the call."
  8195. - from: "capability.stateless-browser-use-mcp"
  8196. to: "boundary.desktop-continuous"
  8197. type: "must-not-change-delivery"
  8198. rank: "invariant-only"
  8199. - from: "capability.stateless-browser-use-mcp"
  8200. to: "boundary.web-remote-replayable"
  8201. type: "must-not-change-delivery"
  8202. rank: "invariant-only"
  8203. - from: "capability.stateless-browser-use-mcp"
  8204. to: "evidence.mcp-runtime-tests"
  8205. type: "covered-by"
  8206. rank: "evidence-only"
  8207. - from: "capability.mcp-dual-era-version-negotiation"
  8208. to: "service.mcp-session-runtime"
  8209. type: "selects-wire-era-for"
  8210. rank: "must-inspect"
  8211. condition: "Unspecified stdio and Streamable HTTP servers default to auto; explicit legacy and deprecated SSE skip modern probing."
  8212. - from: "capability.stateless-browser-use-mcp"
  8213. to: "capability.mcp-dual-era-version-negotiation"
  8214. type: "pins-modern-through"
  8215. rank: "must-inspect"
  8216. condition: "The built-in node_repl pins 2026-07-28 and must never silently fall back to initialize or persistent legacy kernel semantics."
  8217. - from: "capability.mcp-dual-era-version-negotiation"
  8218. to: "boundary.desktop-continuous"
  8219. type: "must-not-change-delivery"
  8220. rank: "invariant-only"
  8221. - from: "capability.mcp-dual-era-version-negotiation"
  8222. to: "boundary.web-remote-replayable"
  8223. type: "must-not-change-delivery"
  8224. rank: "invariant-only"
  8225. - from: "capability.mcp-dual-era-version-negotiation"
  8226. to: "evidence.mcp-runtime-tests"
  8227. type: "covered-by"
  8228. rank: "evidence-only"
  8229. - from: "capability.mcp-oauth-authorization"
  8230. to: "surface.customize-capability-settings"
  8231. type: "renders-authorization-in"
  8232. rank: "must-inspect"
  8233. - from: "capability.window-single-host-controller-r1"
  8234. to: "service.window-host-remote-connection-registry"
  8235. type: "owns"
  8236. rank: "must-inspect"
  8237. condition: "Each BrowserWindow owns one Host process; local, SSH, WSL, Docker, Server, Mobile, and Bot routes share its in-process registry."
  8238. - from: "capability.window-single-host-controller-r1"
  8239. to: "state.window-host-controller-projection"
  8240. type: "projects-through"
  8241. rank: "must-inspect"
  8242. condition: "The Host owns task membership, live overlay, source availability, offline retention, and list-originated write routing."
  8243. - from: "capability.window-single-host-controller-r1"
  8244. to: "boundary.window-host-scoped-service-attachment"
  8245. type: "exposes"
  8246. rank: "must-inspect"
  8247. condition: "One Host exposes a base port and validated remote-scoped ports without creating Remote Host processes."
  8248. - from: "state.window-host-controller-projection"
  8249. to: "capability.task-persistence"
  8250. type: "aggregates-without-owning"
  8251. rank: "must-inspect"
  8252. condition: "task-index remains the membership authority; sessions-index only overlays live facts and the projection is memory-only."
  8253. - from: "boundary.window-host-scoped-service-attachment"
  8254. to: "capability.remote-delivery"
  8255. type: "attaches-to"
  8256. rank: "must-inspect"
  8257. condition: "Main and relay only forward authenticated ports and payloads; they do not own task, stream, queue, or snapshot state."
  8258. - from: "capability.window-single-host-controller-r1"
  8259. to: "capability.workspace-identity"
  8260. type: "isolates-through"
  8261. rank: "must-inspect"
  8262. condition: "All state keys and routes use workspaceIdentity with workspacePath fallback; remote scopes require identity and fail closed."
  8263. - from: "boundary.window-host-scoped-service-attachment"
  8264. to: "boundary.desktop-continuous"
  8265. type: "injects-trusted-mode"
  8266. rank: "invariant-only"
  8267. condition: "Desktop ports stay direct continuous and never merge Mobile replayable recovery frames."
  8268. - from: "boundary.window-host-scoped-service-attachment"
  8269. to: "boundary.web-remote-replayable"
  8270. type: "injects-trusted-mode"
  8271. rank: "invariant-only"
  8272. condition: "Mobile ports stay replayable with independent seq, gap, snapshot, backpressure, and disposal state."
  8273. - from: "capability.window-single-host-controller-r1"
  8274. to: "evidence.ssh-remote-p0-e2e"
  8275. type: "covered-by"
  8276. rank: "evidence-only"
  8277. condition: "Formal real Ubuntu SSH flows cover failure/retry and two-workspace task isolation while keeping one Host PID; pending SSH-P0-CONN-03 plans same-target pending cancel with new-credential retry; renderer reload remains covered by the independent R1-RELOAD-01 case."
  8278. - from: "capability.unified-zcode-lite-server"
  8279. to: "surface.multi-server-controller-ui"
  8280. type: "renders-in"
  8281. rank: "must-inspect"
  8282. - from: "capability.remote-conversation-workspace"
  8283. to: "surface.remote-connection-device-picker"
  8284. type: "must-not-open-through"
  8285. rank: "must-inspect"
  8286. condition: "Device picker connects a Source Profile and requires a project directory. Legacy remote conversation data remains stored but has no UI creation or history entry."
  8287. - from: "capability.remote-device-connection-ux"
  8288. to: "surface.remote-device-settings"
  8289. type: "renders-status-and-connect-entry-in"
  8290. rank: "must-inspect"
  8291. condition: "Settings presents device and unbound Profile connectivity without exposing identification/line concepts; user connect actions open the global wizard at the connecting step."
  8292. - from: "capability.remote-device-connection-ux"
  8293. to: "surface.remote-source-task-sidebar"
  8294. type: "renders-status-and-connect-entry-in"
  8295. rank: "must-inspect"
  8296. condition: "Remote projects remain visible in one global project order, including offline and legacy identities; project connection actions retain the exact directory in the global wizard."
  8297. - from: "capability.remote-device-connection-ux"
  8298. to: "surface.remote-connection-device-picker"
  8299. type: "routes-profile-intent-through"
  8300. rank: "must-inspect"
  8301. condition: "A preferred Profile intent loads credentials and enters wizard step 4 before the Host connection call; install, upgrade, retry, and errors stay in that flow, while success selects a project directory or opens the explicitly requested project."
  8302. - from: "capability.remote-device-connection-ux"
  8303. to: "capability.remote-conversation-workspace"
  8304. type: "must-not-default-profile-connect-success-to"
  8305. rank: "must-inspect"
  8306. condition: "All user-clicked Profile connections are project flows; no remote projectless draft is created. Explicit directory intent survives install, upgrade and credential interaction."
  8307. - from: "capability.remote-device-connection-ux"
  8308. to: "state.remote-workspace-ui-projection"
  8309. type: "projects-display-state-from"
  8310. rank: "must-inspect"
  8311. condition: "The UI hides pending/unbound terminology without deleting Source/Profile ownership state or changing aggregation."
  8312. - from: "capability.remote-device-connection-ux"
  8313. to: "service.multi-server-controller"
  8314. type: "commits-connect-through"
  8315. rank: "must-inspect"
  8316. condition: "The dialog remains the only user-click connection commit seam; background reconnect and recovery keep their existing service path."
  8317. - from: "capability.remote-device-connection-ux"
  8318. to: "capability.workspace-identity"
  8319. type: "must-not-rekey"
  8320. rank: "invariant-only"
  8321. condition: "SSH alias and device display names are presentation/default metadata and never participate in device identity, Profile matching, or workspaceKey."
  8322. - from: "capability.remote-device-connection-ux"
  8323. to: "boundary.desktop-continuous"
  8324. type: "must-not-change-delivery"
  8325. rank: "invariant-only"
  8326. - from: "capability.remote-device-connection-ux"
  8327. to: "boundary.web-remote-replayable"
  8328. type: "must-remain-isolated-from"
  8329. rank: "invariant-only"
  8330. condition: "Desktop UI entry routing does not create a Mobile runtime, remote session, or replayable recovery path."
  8331. - from: "capability.remote-conversation-workspace"
  8332. to: "surface.remote-source-task-sidebar"
  8333. type: "is-hidden-from"
  8334. rank: "must-inspect"
  8335. condition: "Only local projectless tasks remain in the task section. Remote conversation tasks are hidden in groups, pinned, timeline, archive, search and startup restoration without deleting data."
  8336. - from: "capability.remote-conversation-workspace"
  8337. to: "capability.workspace-identity"
  8338. type: "isolates-by"
  8339. rank: "must-inspect"
  8340. condition: "Each Source Server has one idempotent conversation backing workspace; purpose does not participate in identity."
  8341. - from: "capability.remote-conversation-workspace"
  8342. to: "state.remote-workspace-ui-projection"
  8343. type: "projects-through"
  8344. rank: "must-inspect"
  8345. condition: "Settings, device picker, and sidebar consume one read projection but filter different row sets."
  8346. - from: "state.remote-workspace-ui-projection"
  8347. to: "state.controller-server-directory"
  8348. type: "joins-authoritative-device-facts-from"
  8349. rank: "must-inspect"
  8350. - from: "state.remote-workspace-ui-projection"
  8351. to: "state.desktop-tab-restore-projection"
  8352. type: "joins-open-workspace-membership-from"
  8353. rank: "must-inspect"
  8354. condition: "Restore/reload mutations are not interpreted as user-close and open membership remains distinct from known workspace history."
  8355. - from: "service.remote-workspace-intent-controller"
  8356. to: "service.multi-server-controller"
  8357. type: "dispatches-device-and-workspace-intents-through"
  8358. rank: "must-inspect"
  8359. condition: "User connection completion selects a project; open-project, disconnect-device, reconnect-workspace and user-close retain explicit intent origins. Legacy conversation data is not exposed through UI intents."
  8360. - from: "state.remote-workspace-ui-projection"
  8361. to: "persistence.remote-open-workspace-set"
  8362. type: "reads-and-persists"
  8363. rank: "must-inspect"
  8364. condition: "Remote purpose is optional for old data, defaults to project, and conversation backing paths are excluded from project history/count projections."
  8365. - from: "capability.remote-conversation-workspace"
  8366. to: "boundary.desktop-continuous"
  8367. type: "must-not-change-delivery"
  8368. rank: "invariant-only"
  8369. - from: "capability.remote-conversation-workspace"
  8370. to: "boundary.web-remote-replayable"
  8371. type: "reuses-existing-attachment-without-creating-runtime"
  8372. rank: "invariant-only"
  8373. condition: "Mobile hides remote projectless history while preserving local conversation and remote project attachments; no new runtime or recovery mechanism is introduced."
  8374. - from: "capability.unified-zcode-lite-server"
  8375. to: "capability.remote-environment-compatibility"
  8376. type: "depends-on"
  8377. rank: "must-inspect"
  8378. condition: "SSH/WSL/Docker bootstrap must select daemon ownership from observed remote capabilities instead of transport labels alone."
  8379. - from: "capability.unified-zcode-lite-server"
  8380. to: "surface.remote-device-settings"
  8381. type: "renders-required-update-in"
  8382. rank: "must-inspect"
  8383. - from: "capability.unified-zcode-lite-server"
  8384. to: "surface.remote-connection-device-picker"
  8385. type: "renders-required-update-in"
  8386. rank: "must-inspect"
  8387. condition: "An incompatible Server can be updated in place and the original connect intent resumes after the new handshake."
  8388. - from: "capability.unified-zcode-lite-server"
  8389. to: "surface.remote-source-task-sidebar"
  8390. type: "notifies-required-update-in"
  8391. rank: "must-inspect"
  8392. condition: "Reconnect failures defer to one actionable management toast instead of adding a duplicate bare error."
  8393. - from: "surface.remote-device-settings"
  8394. to: "shared.source-server-update-action"
  8395. type: "commits-update-through"
  8396. rank: "must-inspect"
  8397. - from: "surface.remote-connection-device-picker"
  8398. to: "shared.source-server-update-action"
  8399. type: "commits-update-through"
  8400. rank: "must-inspect"
  8401. - from: "surface.remote-source-task-sidebar"
  8402. to: "shared.source-server-update-action"
  8403. type: "commits-toast-update-through"
  8404. rank: "must-inspect"
  8405. - from: "shared.source-server-update-action"
  8406. to: "service.multi-server-controller"
  8407. type: "commits-to"
  8408. rank: "must-inspect"
  8409. condition: "Every entry first updates with force=false; only the running-task guard can lead to explicit force=true confirmation."
  8410. - from: "service.multi-server-controller"
  8411. to: "state.source-server-update-operation-progress"
  8412. type: "publishes-ephemeral-progress-to"
  8413. rank: "must-inspect"
  8414. condition: "Structured phase, message and real transfer progress stay in memory and never enter Source persistence."
  8415. - from: "state.source-server-update-operation-progress"
  8416. to: "surface.remote-device-settings"
  8417. type: "renders-in"
  8418. rank: "must-inspect"
  8419. - from: "state.source-server-update-operation-progress"
  8420. to: "surface.remote-connection-device-picker"
  8421. type: "renders-in"
  8422. rank: "must-inspect"
  8423. - from: "shared.source-server-update-action"
  8424. to: "boundary.web-remote-replayable"
  8425. type: "must-remain-isolated-from"
  8426. rank: "invariant-only"
  8427. condition: "Source management update actions remain Desktop-only and do not create a Mobile runtime or management channel."
  8428. - from: "capability.remote-environment-compatibility"
  8429. to: "service.zcode-stable-launcher"
  8430. type: "selects-service-or-detached-owner-for"
  8431. rank: "must-inspect"
  8432. condition: "Unavailable user service manager falls back; a reachable manager whose registration fails remains fatal."
  8433. - from: "capability.remote-environment-compatibility"
  8434. to: "boundary.unified-server-transport"
  8435. type: "probes-before-bootstrap"
  8436. rank: "must-inspect"
  8437. condition: "Daemon error JSON, archive tools and executable staging are validated before handshake without changing upper RPC semantics."
  8438. - from: "capability.remote-environment-compatibility"
  8439. to: "capability.build-release-engineering"
  8440. type: "constrains-posix-archive-output-of"
  8441. rank: "must-inspect"
  8442. condition: "macOS staging must omit host xattr/PAX metadata so Linux extraction does not flood diagnostics or alter release evidence."
  8443. - from: "capability.remote-environment-compatibility"
  8444. to: "evidence.ssh-remote-p0-e2e"
  8445. type: "covered-by"
  8446. rank: "evidence-only"
  8447. - from: "surface.multi-server-controller-ui"
  8448. to: "state.controller-server-directory"
  8449. type: "projects-from"
  8450. rank: "must-inspect"
  8451. condition: "Desktop and Lite keep independent controller-local connection lists; attached Mobile reuses the selected controller directory."
  8452. - from: "capability.unified-zcode-lite-server"
  8453. to: "surface.source-settings-scope"
  8454. type: "renders-source-selection-in"
  8455. rank: "must-inspect"
  8456. - from: "surface.source-settings-scope"
  8457. to: "service.source-settings-attachment"
  8458. type: "commits-user-server-scope-to"
  8459. rank: "must-inspect"
  8460. condition: "A selected remote Source uses its Desktop-only source-settings attachment even when no workspace is open; offline never falls back to base services."
  8461. - from: "surface.source-settings-scope"
  8462. to: "boundary.window-host-scoped-service-attachment"
  8463. type: "commits-project-scope-to"
  8464. rank: "must-inspect"
  8465. condition: "Project scope selects an open workspace that belongs to the selected Source and keeps workspaceIdentity?.trim() || workspacePath isolation."
  8466. - from: "service.source-settings-attachment"
  8467. to: "boundary.web-remote-replayable"
  8468. type: "must-remain-unavailable-to"
  8469. rank: "invariant-only"
  8470. condition: "Mobile may read Source facts from existing workspace/task projection but cannot call management or source-settings channels."
  8471. - from: "capability.unified-zcode-lite-server"
  8472. to: "capability.remote-provider-provisioning"
  8473. type: "provisions-remote-config-through"
  8474. rank: "must-inspect"
  8475. condition: "Local model settings trigger automatic replace-style provisioning; the Remote Environment stores and Registry remain execution authorities. The removed manual provider-sync journal is not a recovery path."
  8476. - from: "capability.unified-zcode-lite-server"
  8477. to: "evidence.r3-remote-automation-plan"
  8478. type: "has-planned-regression-evidence"
  8479. rank: "evidence-only"
  8480. condition: "Cases and materials are planned or inventoried; the plan is not proof of runtime coverage."
  8481. - from: "service.source-server-workspace-mapper"
  8482. to: "persistence.source-workspace-migration-ledger"
  8483. type: "resolves-and-recovers-through"
  8484. rank: "must-inspect"
  8485. condition: "Abandoned paths stay open on the frozen canonical until explicit retry; resume-time conflicts fail the current phase before partial rekey can complete."
  8486. - from: "state.controller-server-directory"
  8487. to: "service.multi-server-controller"
  8488. type: "connects-through"
  8489. rank: "must-inspect"
  8490. - from: "service.multi-server-controller"
  8491. to: "service.zcode-stable-launcher"
  8492. type: "bootstraps-through"
  8493. rank: "must-inspect"
  8494. - from: "service.zcode-stable-launcher"
  8495. to: "persistence.zcode-server-identity"
  8496. type: "owns"
  8497. rank: "must-inspect"
  8498. condition: "serverId is persistent per OS user/data root and independent from SSH account, address, and connection route."
  8499. - from: "service.multi-server-controller"
  8500. to: "boundary.unified-server-transport"
  8501. type: "routes-through"
  8502. rank: "must-inspect"
  8503. - from: "boundary.unified-server-transport"
  8504. to: "capability.conversation-runtime"
  8505. type: "carries-without-changing"
  8506. rank: "invariant-only"
  8507. condition: "MessagePort, WebSocket, and SSH/WSL/Docker tunnels carry the same typed service and V4 conversation contracts."
  8508. - from: "capability.unified-zcode-lite-server"
  8509. to: "capability.workspace-identity"
  8510. type: "rekeys-with-server-identity"
  8511. rank: "must-inspect"
  8512. condition: "Global references use serverId plus server-local workspaceIdentity; workspacePath remains execution/display only."
  8513. - from: "capability.unified-zcode-lite-server"
  8514. to: "service.source-server-workspace-mapper"
  8515. type: "maps-canonical-identity-through"
  8516. rank: "must-inspect"
  8517. condition: "Only the remote Core RPC seam maps controller-stable identity to the R3 canonical legacy storage key; Desktop Host and Mobile never own canonical storage identity."
  8518. - from: "service.source-server-workspace-mapper"
  8519. to: "capability.workspace-identity"
  8520. type: "preserves-controller-identity-for"
  8521. rank: "must-inspect"
  8522. - from: "capability.unified-zcode-lite-server"
  8523. to: "capability.prompt-attachment-materialization"
  8524. type: "replaces-host-path-with-resource-store-for"
  8525. rank: "must-inspect"
  8526. - from: "capability.prompt-attachment-materialization"
  8527. to: "persistence.zcode-resource-store"
  8528. type: "persists-source-server-resource-to"
  8529. rank: "must-inspect"
  8530. condition: "Future/R4 boundary only: R3 retains the existing prompt-attachment-transfer contract and does not deliver Resource Store."
  8531. - from: "capability.unified-zcode-lite-server"
  8532. to: "capability.provider-registry"
  8533. type: "keeps-server-local-and-syncs-explicitly"
  8534. rank: "must-inspect"
  8535. condition: "Provider definitions can be directionally mirrored; OAuth, runtime-only headers, display order, and UI selection state remain local."
  8536. - from: "capability.unified-zcode-lite-server"
  8537. to: "capability.remote-delivery"
  8538. type: "reuses-controller-attachment-for"
  8539. rank: "must-inspect"
  8540. condition: "Mobile sees its controller multi-server projection but remains web-remote-replayable and never starts independent remote runtimes."
  8541. - from: "capability.unified-zcode-lite-server"
  8542. to: "boundary.desktop-continuous"
  8543. type: "must-not-change-delivery"
  8544. rank: "invariant-only"
  8545. - from: "capability.unified-zcode-lite-server"
  8546. to: "boundary.web-remote-replayable"
  8547. type: "must-not-change-recovery"
  8548. rank: "invariant-only"
  8549. - from: "capability.project-creation-folder-confirmation"
  8550. to: "surface.project-creation-form"
  8551. type: "renders-in"
  8552. rank: "must-inspect"
  8553. condition: "Every creation with selected folders requires explicit confirmation, including folders used by another project. No persistent folder trust record; local zero-root projects skip confirmation and retain lazy default-directory creation."
  8554. - from: "capability.project-creation-folder-confirmation"
  8555. to: "capability.workspace-hook-persistent-trust"
  8556. type: "must-not-mutate"
  8557. rank: "invariant-only"
  8558. condition: "Confirmed boundary: project folder confirmation only acknowledges access for this creation; Hook declarations retain their existing independent trust and admission rules."
  8559. - from: "capability.workspace-hook-persistent-trust"
  8560. to: "surface.workspace-hook-settings-trust-row"
  8561. type: "renders-in"
  8562. rank: "must-inspect"
  8563. - from: "surface.workspace-hook-settings-trust-row"
  8564. to: "state.workspace-hook-review-renderer-binding"
  8565. type: "requests-and-waits-through"
  8566. rank: "must-inspect"
  8567. condition: "Static Trust state controls visibility only; mutation waits for the same workspace identity, bundle digest, and review item in an immutable Runtime request."
  8568. - from: "state.workspace-hook-review-renderer-binding"
  8569. to: "service.workspace-hook-runtime-review-controller"
  8570. type: "commits-to"
  8571. rank: "must-inspect"
  8572. - from: "surface.workspace-hook-settings-trust-row"
  8573. to: "service.workspace-hook-settings-pretrust"
  8574. type: "falls-back-to-without-session"
  8575. rank: "must-inspect"
  8576. condition: "When no task/session command binding exists, the Host starts only a read-only Agent control plane and never creates a hidden task."
  8577. - from: "service.workspace-hook-settings-pretrust"
  8578. to: "state.workspace-hook-managed-policy"
  8579. type: "must-authorize-mutation-with"
  8580. rank: "must-inspect"
  8581. condition: "The no-session Settings RPC reads the same trusted Host-owned provider as session Runtime; deny and allow_trusted_only reject before Trust store mutation."
  8582. - from: "service.workspace-hook-runtime-review-controller"
  8583. to: "state.workspace-hook-managed-policy"
  8584. type: "must-authorize-mutation-with"
  8585. rank: "must-inspect"
  8586. condition: "Session review and no-session pretrust share one provider instance so policy cannot diverge by UI path."
  8587. - from: "service.workspace-hook-settings-pretrust"
  8588. to: "persistence.workspace-hook-trust-store"
  8589. type: "revalidates-and-persists-exact-declaration-to"
  8590. rank: "must-inspect"
  8591. condition: "The Agent rediscovers the canonical snapshot and matches workspace identity, bundle digest, and declaration digest before mutation."
  8592. - from: "service.workspace-hook-runtime-review-controller"
  8593. to: "persistence.workspace-hook-trust-store"
  8594. type: "persists-exact-declaration-trust-to"
  8595. rank: "must-inspect"
  8596. - from: "capability.workspace-hook-persistent-trust"
  8597. to: "capability.workspace-identity"
  8598. type: "isolates-by"
  8599. rank: "must-inspect"
  8600. condition: "Authorization uses workspaceIdentity.trim() or workspacePath fallback; workspacePath alone never aliases distinct remote workspaces."
  8601. - from: "capability.workspace-hook-persistent-trust"
  8602. to: "boundary.desktop-continuous"
  8603. type: "projects-review-without-changing"
  8604. rank: "invariant-only"
  8605. - from: "capability.workspace-hook-persistent-trust"
  8606. to: "boundary.web-remote-replayable"
  8607. type: "recovers-review-without-bypassing"
  8608. rank: "invariant-only"
  8609. - from: "capability.workspace-hook-persistent-trust"
  8610. to: "evidence.workspace-hook-persistent-trust-tests"
  8611. type: "covered-by"
  8612. rank: "evidence-only"
  8613. - from: "capability.conversation-hook-turn-summary"
  8614. to: "surface.conversation-turn-hook-summary"
  8615. type: "renders-in"
  8616. rank: "must-inspect"
  8617. - from: "surface.conversation-turn-hook-summary"
  8618. to: "state.conversation-projection"
  8619. type: "reads-client-safe-turn-summary-from"
  8620. rank: "must-inspect"
  8621. condition: "Renderer groups authoritative hookInvocation rows by turnId and never infers placement from the nearest assistant row."
  8622. - from: "capability.conversation-hook-turn-summary"
  8623. to: "capability.hooks-settings"
  8624. type: "shares-source-vocabulary-with"
  8625. rank: "should-inspect"
  8626. condition: "User, Project, and Plugin remain distinct sources; the conversation surface does not edit settings or Trust."
  8627. - from: "capability.conversation-hook-turn-summary"
  8628. to: "boundary.desktop-continuous"
  8629. type: "projects-safe-summary-through"
  8630. rank: "must-inspect"
  8631. condition: "Desktop receives direct continuous hook summary updates without adopting replayable recovery semantics."
  8632. - from: "capability.conversation-hook-turn-summary"
  8633. to: "boundary.web-remote-replayable"
  8634. type: "recovers-safe-summary-through"
  8635. rank: "must-inspect"
  8636. condition: "Mobile receives only client-safe summary fields through the existing shared-host replayable snapshot/gap boundary."
  8637. - from: "capability.conversation-hook-turn-summary"
  8638. to: "evidence.conversation-catalog"
  8639. type: "covered-by"
  8640. rank: "evidence-only"
  8641. - from: "capability.subagent-computer-use-boundary"
  8642. to: "capability.agent-core-runtime"
  8643. type: "guards-child-runtime"
  8644. rank: "must-inspect"
  8645. - from: "capability.subagent-computer-use-boundary"
  8646. to: "capability.mcp-dual-era-version-negotiation"
  8647. type: "filters-borrowed-mcp-surface"
  8648. rank: "must-inspect"
  8649. - from: "capability.subagent-computer-use-boundary"
  8650. to: "capability.plugin-reference"
  8651. type: "filters-official-skill-provenance"
  8652. rank: "should-inspect"
  8653. - from: "capability.subagent-computer-use-boundary"
  8654. to: "evidence.mcp-runtime-tests"
  8655. type: "covered-by"
  8656. rank: "evidence-only"
  8657. - from: "capability.workflow-run-confirmation"
  8658. to: "surface.workflow-run-confirmation-dialog"
  8659. type: "renders-ask-preview-in"
  8660. rank: "must-inspect"
  8661. condition: "Ask fires only when the analysis is clean; typecheck failures return diagnostics with no dialog. Options are Run/Deny only (optionsPolicy no-always-allow across all three option-build sites)."
  8662. - from: "surface.workflow-run-confirmation-dialog"
  8663. to: "surface.parent-task-blocking-interaction"
  8664. type: "shares-dialog-host-with"
  8665. rank: "must-inspect"
  8666. condition: "Same PermissionDialog host and resolveInteraction commit path; the workflow branch replaces the generic block and skips displayReason. The script fold is a recorded exception to the no-collapse permission-block rule: the graph stays force-open as the decision-critical content."
  8667. - from: "capability.workflow-run-confirmation"
  8668. to: "surface.conversation-tool-call"
  8669. type: "must-match-tool-identity-split-of"
  8670. rank: "invariant-only"
  8671. condition: "Both surfaces dispatch on resolveToolCallIdentity family workflow so pre- and post-approval semantics never drift."
  8672. - from: "capability.workflow-live-run"
  8673. to: "capability.workflow-run-confirmation"
  8674. type: "starts-only-after-allow-from"
  8675. rank: "must-inspect"
  8676. condition: "The engine starts on the confirmation gate's Allow in any mode. The broken-script path is unchanged: prepareApproval rules proceed, the handler returns diagnostics, and no dwf_run row is created. CreateWorkflowOutputSchema is .strict(), so status/backgroundTaskId is an explicit schema change, and metadata.readOnly flips true to false."
  8677. - from: "capability.workflow-live-run"
  8678. to: "state.workflow-run-journal"
  8679. type: "delegates-run-truth-to"
  8680. rank: "must-inspect"
  8681. condition: "The engine owns createRun; the submit path must never pre-insert a dwf_run row, since a pre-existing row flips the constructor into its resume branch and a new run would silently resume from an empty journal. createRun grows scriptText/scriptHash/parentSessionId/cwd, and listEvents grows an afterSequence/limit cursor whose semantics must be proven by the shared journal contract suite (src/testing/journal-contract.ts) against both the in-memory and SQLite implementations."
  8682. - from: "capability.workflow-live-run"
  8683. to: "state.conversation-projection"
  8684. type: "adds-authoritative-state-key-to"
  8685. rank: "must-inspect"
  8686. condition: "Run events append bounded session events to the PARENT session, through the projection reducer, reduced into the workflowRuns state.updated key (bounded runs/actors/nodes arrays, lastEventSequence). Precedent is the subagents key. Recorded deviation from execution-engine.md: state.updated is not profile-gated, justified by transition-frequency rather than token-frequency events; run-settled emits the terminal authoritative patch."
  8687. - from: "capability.workflow-live-run"
  8688. to: "capability.subagents"
  8689. type: "reuses-background-lifecycle-pattern-of"
  8690. rank: "must-inspect"
  8691. condition: "The five hardcoded tool-name dispatch sites in background-tasks.ts become a per-tool port lookup rather than a fifth special case. canCancelBackgroundTask is one of them and is load-bearing: it hard-returns false for Workflow today, so cancellable is false and the Cancel button is dead without it. A new narrow DynamicWorkflowRunPort is added; the legacy WorkflowPort is NOT widened. Cancellation adds no RPC: the details page and the backgroundWorks panel share the existing cancelBackgroundWork command with workId = runId, and the run service's AbortController registry is that port's cancel(runId) behind it."
  8692. - from: "capability.workflow-live-run"
  8693. to: "boundary.web-remote-replayable"
  8694. type: "must-not-change-recovery"
  8695. rank: "invariant-only"
  8696. condition: "workflowRuns is authoritative on every patch, so replayable clients resume complete with no terminal-upsert machinery. No version-skew defense is needed on the v4 wire — verified: statePatchSchema is a non-strict z.object under zod ^4.3.6, so an old desktop strips the unknown key and keeps the rest of the patch. Do NOT re-litigate this against the CreateWorkflow-display precedent, which had the opposite shape (.strict() schemas made an old desktop discard the whole permission.requested event). The new session event type is stripped at shouldExposeSessionEventToProtocol, the same seam as the existing StreamingToolLedgerUpdated strip, for bandwidth rather than to prevent event loss."
  8697. - from: "capability.workflow-live-run"
  8698. to: "surface.workflow-run-detail-pane"
  8699. type: "renders-live-progress-in"
  8700. rank: "must-inspect"
  8701. condition: "Live view v1 is the STATIC causality graph plus a status overlay, not the unrolled instance graph. Status joins by site id and aggregates over instances (any running wins, then failed, then all-settled done, else pending); engine phases dispatched/repairing/nudged map to running, settled ok including cached to done, failed/cancelled to failed. The engine emits no executing event."
  8702. - from: "surface.workflow-run-detail-pane"
  8703. to: "surface.workspace-side-pane-tab-strip"
  8704. type: "adds-tab-type-to"
  8705. rank: "must-inspect"
  8706. condition: "New workflow-run tab type in the WorkspaceSidePaneTab union, shaped after PlanDetailSidePaneTab. Opened from the CreateWorkflow tool card following the ExitPlanMode onOpenPlanDetail precedent: the host injects parent/session scope, the card only emits intent."
  8707. - from: "surface.workflow-run-detail-pane"
  8708. to: "surface.workflow-run-confirmation-dialog"
  8709. type: "shares-causality-graph-component-with"
  8710. rank: "must-inspect"
  8711. condition: "Both render WorkflowCausalityGraph. The statuses and animatedEdges props plus step-node status styling and both locales' status labels already exist from phase 1; the live feature only supplies data, adding no visual vocabulary."
  8712. - from: "surface.workflow-run-detail-pane"
  8713. to: "surface.workflow-actor-transcript"
  8714. type: "drills-down-into"
  8715. rank: "must-inspect"
  8716. condition: "Clicking an ask step resolves actor instances from workflowRuns.actors: a single instance opens the transcript tab, multiple instances (fan-out lane families) open a per-instance status picker. World-read steps are selection-only, since the workspace lane has no session."
  8717. - from: "surface.workflow-actor-transcript"
  8718. to: "surface.subagent-session-detail"
  8719. type: "reuses-read-only-session-composition-of"
  8720. rank: "must-inspect"
  8721. condition: "Nested read-only SessionPane under V4PaneConversationProvider, composed exactly as SubagentSessionSidePane does. This is only reachable because actor sessions become really persisted: the production ActorRuntimeFactory gains ensureSessionPersistedForExternalActivity, subscribeEvents and createSessionTaskLink, and session ids become run-scoped and charset-safe (today's sess_wf-actor-actor#1@1 collides across concurrent runs and carries #/@)."
  8722. - from: "capability.workflow-live-run"
  8723. to: "surface.conversation-tool-call"
  8724. type: "keeps-bounded-display-on"
  8725. rank: "invariant-only"
  8726. condition: "The tool card keeps the bounded display channel and gains only the run entry point; the full view lives in the side pane and reads the workflowRuns projection instead of re-deriving from display."
  8727. - from: "capability.workflow-run-introspection"
  8728. to: "state.workflow-run-journal"
  8729. type: "reads-run-truth-from"
  8730. rank: "must-inspect"
  8731. condition: "Strictly read-only: listRuns/getRunDetail live on the SQLite adapter and are capability-probed, NOT added to the domain JournalStorePort (listNonTerminalRuns precedent — the engine never enumerates runs, and the in-memory journal stays untouched). The tools never write the journal: possiblyInterrupted is a read-side annotation; orphan reconciliation authority stays with the owning session's app construction. Migration 0021 adds dwf_run.name plus the (cwd, time_updated) index; name rides submit → EngineConfig → createRun, keeping createRun engine-exclusive."
  8732. - from: "capability.workflow-run-introspection"
  8733. to: "capability.workflow-live-run"
  8734. type: "extends-read-surface-of"
  8735. rank: "must-inspect"
  8736. condition: "runId ≡ taskId ≡ workId. The tools complement, not replace, the existing surfaces: completion notifications stay the default for this session's runs (tool descriptions must steer models away from polling), TaskOutput stays the blocking-wait tool, and GetWorkflowRun serves cross-session runs the runtime task registry cannot. Both tools declare readOnly/needsApproval:false so they auto-allow in plan and build mode; they must never inherit CreateWorkflow's alwaysAsk gate."
  8737. - from: "surface.submit-result-tool-card"
  8738. to: "surface.workflow-actor-transcript"
  8739. type: "renders-in"
  8740. rank: "must-inspect"
  8741. condition: 'The actor transcript is a nested read-only SessionPane, so submit_result renders through the SAME ToolCallBlocks registry as the main conversation — one renderer fixes both surfaces; there is nothing pane-specific to special-case. Routing requires the literal snake_case name "submit_result" in ZCODE_KNOWN_TOOL_NAMES (family workflow) plus a toolName dispatch inside resolveRenderer''s workflow case (RespondToCoordinator precedent). Pure read-time projection: the payload lives entirely in input.result (output is only {status:"accepted"}), real models often submit it as a JSON-string (engine scheduler leniency mirrored read-side, one lenient JSON.parse max), and no display-union member is added — that union requires four-file lockstep and a missing member degrades silently.'
  8742. - from: "capability.official-server-mcp"
  8743. to: "capability.plan-entitlements"
  8744. type: "authenticates-and-reads-quota-with"
  8745. rank: "must-inspect"
  8746. condition: "Product planScope and transport wireScope are separate; ZAI Team is TEAM for quota but keeps Off-Peak-compatible fallback headers. Entitlement gates tools/call only, never connection or tool advertisement."
  8747. - from: "capability.mcp-settings-diagnostics"
  8748. to: "capability.official-server-mcp"
  8749. type: "projects-connection-diagnostics-from"
  8750. rank: "must-inspect"
  8751. condition: "Only connection, initialize and tools/list diagnostics reach Settings; tools/call entitlement, quota and request ids remain on their tool result surface."
  8752. - from: "capability.mcp-settings-diagnostics"
  8753. to: "surface.customize-capability-settings"
  8754. type: "renders-in"
  8755. rank: "must-inspect"
  8756. condition: "Direct MCP uses Installed and plugin MCP stays grouped by stable pluginId; Commands, Skills and MCP share structural list primitives without sharing resource state or mutations."
  8757. - from: "capability.mcp-settings-diagnostics"
  8758. to: "capability.workspace-identity"
  8759. type: "isolated-by"
  8760. rank: "must-inspect"
  8761. condition: "Status snapshots, failure diagnostics and Plugin projections use workspaceIdentity.trim() or workspacePath fallback and reject stale refresh epochs."
  8762. - from: "capability.official-server-mcp"
  8763. to: "capability.mcp-dual-era-version-negotiation"
  8764. type: "injects-current-identity-during-negotiation-for"
  8765. rank: "must-inspect"
  8766. condition: "Trusted official HTTP server/discover, initialize, initialized notifications, ping, tools/list and GET probes resolve and send current identity headers; trusted official stdio messages carry the same identity payload in namespaced _meta. Resolution failure degrades to an explicit anonymous or failure payload, while untrusted origins still fail before credential access or network access."
  8767. - from: "capability.official-server-mcp"
  8768. to: "capability.mcp-async-tool-catalog"
  8769. type: "separates-advertisement-from-execution-for"
  8770. rank: "must-inspect"
  8771. condition: "Connected status and advertised or cached tool schemas carry no entitlement authority; every official transport request re-resolves credentials, and the server authorizes tools/call before side effects or billing."
  8772. - from: "capability.official-server-mcp"
  8773. to: "capability.workspace-identity"
  8774. type: "audits-by"
  8775. rank: "must-inspect"
  8776. condition: "Credential issuance audit uses workspaceIdentity.trim() or workspacePath fallback; workspacePath remains execution/display only."
  8777. - from: "capability.official-server-mcp"
  8778. to: "boundary.desktop-continuous"
  8779. type: "projects-banner-without-changing"
  8780. rank: "invariant-only"
  8781. - from: "capability.conversation-sharing"
  8782. to: "surface.conversation-share-publish"
  8783. type: "renders-in"
  8784. rank: "must-inspect"
  8785. condition: "Only Desktop local, SSH, WSL, and Docker surfaces publish; mobile and ordinary Web remain unavailable."
  8786. - from: "surface.conversation-share-publish"
  8787. to: "service.conversation-share"
  8788. type: "commits-to"
  8789. rank: "must-inspect"
  8790. - from: "capability.conversation-sharing"
  8791. to: "surface.conversation-share-handover"
  8792. type: "renders-in"
  8793. rank: "must-inspect"
  8794. condition: "Only desktop-continuous imported sessions expose the handover chip/browser path; web-remote-replayable never creates it."
  8795. - from: "surface.conversation-share-handover"
  8796. to: "shared-ui.conversation-share-context-chip"
  8797. type: "shares-component"
  8798. rank: "must-inspect"
  8799. - from: "surface.conversation-share-handover"
  8800. to: "persistence.conversation-share-context"
  8801. type: "commits-to"
  8802. rank: "must-inspect"
  8803. - from: "persistence.conversation-share-context"
  8804. to: "capability.agent-core-runtime"
  8805. type: "projects-provider-context-with"
  8806. rank: "must-inspect"
  8807. condition: "pending/reserved/discarded are excluded from provider history; attached is injected once and survives cold hydration."
  8808. - from: "service.conversation-share"
  8809. to: "service.zcode-agent-connection-scope"
  8810. type: "reads-rows-and-file-changes-through"
  8811. rank: "must-inspect"
  8812. condition: "Desktop local and SSH/WSL/Docker publication reuse the current MessagePort attachment scope; Share never calls raw Agent V4 queries or creates a second connection scope."
  8813. - from: "service.zcode-agent-connection-scope"
  8814. to: "boundary.desktop-continuous"
  8815. type: "injects-trusted-client-mode"
  8816. rank: "must-inspect"
  8817. - from: "service.zcode-agent-connection-scope"
  8818. to: "boundary.web-remote-replayable"
  8819. type: "must-not-authorize-share-through"
  8820. rank: "must-inspect"
  8821. - from: "capability.conversation-sharing"
  8822. to: "capability.workspace-identity"
  8823. type: "isolated-by"
  8824. rank: "must-inspect"
  8825. condition: "Remote publication carries workspaceIdentity and remoteSessionId while workspacePath remains execution-only."
  8826. - from: "capability.conversation-sharing"
  8827. to: "boundary.desktop-continuous"
  8828. type: "allowed-through"
  8829. rank: "must-inspect"
  8830. - from: "capability.conversation-sharing"
  8831. to: "boundary.web-remote-replayable"
  8832. type: "must-remain-isolated-from"
  8833. rank: "must-inspect"
  8834. - from: "capability.official-server-mcp"
  8835. to: "boundary.web-remote-replayable"
  8836. type: "projects-banner-without-changing"
  8837. rank: "invariant-only"
  8838. - from: "surface.archive-management"
  8839. to: "state.virtual-project-directory"
  8840. type: "reads-projection-from"
  8841. rank: "must-inspect"
  8842. condition: "Archived rows group by Host + virtual project ID, never root path; settings and workspace share one directory owner."
  8843. - from: "surface.archive-management"
  8844. to: "service.project-task-mutation"
  8845. type: "commits-through"
  8846. rank: "must-inspect"
  8847. condition: "Unarchive and confirmed deletion keep complete workspace identity; bulk results do not fabricate success for failed rows."
  8848. - from: "service.project-task-mutation"
  8849. to: "service.zcode-task-list"
  8850. type: "delegates-to"
  8851. rank: "must-inspect"
  8852. condition: "Existing Controller routing and service commands preserve Host organization and CLI existence ownership."
  8853. - from: "capability.background-bash-output"
  8854. to: "service.zcode-agent-connection-scope"
  8855. type: "queries-through"
  8856. rank: "must-inspect"
  8857. - from: "capability.background-bash-output"
  8858. to: "boundary.desktop-continuous"
  8859. type: "preserves"
  8860. rank: "invariant-only"
  8861. - from: "capability.background-bash-output"
  8862. to: "boundary.web-remote-replayable"
  8863. type: "preserves"
  8864. rank: "invariant-only"
  8865. - from: "surface.sidebar-search-view"
  8866. to: "state.sidebar-view-preference"
  8867. type: "commits-display-preference-to"
  8868. rank: "must-inspect"
  8869. condition: "Only localStorage view changes; Shell navigation and Host facts stay unchanged."
  8870. - from: "surface.sidebar-search-view"
  8871. to: "surface.recent-task-list"
  8872. type: "selects"
  8873. rank: "must-inspect"
  8874. - from: "surface.recent-task-list"
  8875. to: "state.virtual-project-directory"
  8876. type: "projects-from"
  8877. rank: "must-inspect"
  8878. condition: "Include all visible unarchived rows, including pinned; no running-first or project/Host grouping."
  8879. - from: "surface.project-task-list"
  8880. to: "state.virtual-project-directory"
  8881. type: "projects-from"
  8882. rank: "must-inspect"
  8883. condition: "Controller-local mixed project order by hostId/projectId; running-first task order with updated-time ordinary rows."
  8884. - from: "state.sidebar-view-preference"
  8885. to: "state.virtual-project-directory"
  8886. type: "owned-by"
  8887. rank: "must-inspect"
  8888. condition: "Sidebar and composer share one directory owner; view never changes composer project order."
  8889. - from: "surface.composer-at-context-picker"
  8890. to: "service.composer-host-file-search"
  8891. type: "options-from"
  8892. condition: "Only file mentions use bounded Host search; other file pickers retain the packed listing API and canonical mention insertion remains unchanged."
  8893. - from: "capability.bot-group-collaboration"
  8894. to: "surface.bot-bound-groups"
  8895. type: "renders-in"
  8896. rank: "must-inspect"
  8897. - from: "capability.bot-group-collaboration"
  8898. to: "surface.bot-channel-messages"
  8899. type: "projects-to"
  8900. rank: "must-inspect"
  8901. - from: "capability.bot-group-collaboration"
  8902. to: "service.zcode-agent-connection-scope"
  8903. type: "commits-through"
  8904. rank: "must-inspect"
  8905. condition: "CLI owns admission and execution; Bot Host owns conversation binding and durable delivery."
  8906. - from: "capability.bot-group-collaboration"
  8907. to: "boundary.web-remote-replayable"
  8908. type: "must-remain-isolated-from"
  8909. rank: "invariant-only"
  8910. condition: "Bot output stays bot-channel-continuous; mobile input and recovery retain replayable semantics."
  8911. - from: "capability.session-owned-shutdown"
  8912. to: "capability.subagents"
  8913. type: "depends-on"
  8914. rank: "must-inspect"
  8915. - from: "capability.session-owned-shutdown"
  8916. to: "capability.shared-task-cli"
  8917. type: "must-remain-isolated-from"
  8918. rank: "invariant-only"
  8919. - from: "capability.session-owned-shutdown"
  8920. to: "capability.conversation-runtime"
  8921. type: "depends-on"
  8922. rank: "must-inspect"