.
D 2026-08-19T00:10:04.024
J cmimetype text/x-markdown
J comment `tk`\sis\sthe\sone\sstore\swhose\sindex\scannot\sbe\srepaired\sby\sa\sfull\srebuild.\sDetection\sand\sone-shot\srepair\slanded\sin\sbd55e3a4;\sthis\sis\sthe\sresidue\sthat\srepair\sdoes\snot\sclose.\n\n##\sWhat\sis\sobserved\n\nAfter\s`quarry\sreindex`\sreplays\sall\s69,182\sartifacts,\sthe\sindex\sstill\sholds\scheck-in\sedges\swhose\sparent\sit\sdoes\snot\shave\s—\sand\sunlike\sfossil,\stcl,\ssqlite\sand\slibfossil,\swhose\sdangling\sancestors\sare\sgenuinely\sabsent\sfrom\sthe\sstore\s(shunned,\sor\san\simport\sthat\sbegan\spartway\sdown\sthe\sDAG),\s**the\stk\sstore\sstill\sholds\sthese\sartifacts**.\sVerified\sper\shash\swith\s`zit\sartifact\s<hash>\s-R`,\swhich\ssucceeds.\n\nSo\sthis\sis\sreal\sloss,\sreproducible\sacross\srebuilds:\n\n\s\s\s\singest:\stk:\s1\sartifacts\sthe\sstore\sholds\sare\smissing\sfrom\sthe\sindex;\srebuilding\n\s\s\s\singest:\stk:\sSTILL\s1\sartifacts\smissing\safter\sa\sfull\srebuild\s—\sNOT\sretrying\n\nThe\spipeline\snow\sstops\safter\sone\sattempt\srather\sthan\sreplaying\sthe\sstore\severy\stwo\sminutes\sforever,\sand\sreports\sthe\scount\sin\sfleet\shealth.\n\n##\sWhy\sa\srebuild\sdoes\snot\sfix\sit\n\nUnknown,\sand\sthat\sis\sthe\swork.\sLeads,\sin\sthe\sorder\sworth\strying:\n\n1.\s**The\scensus\soutruns\sthe\swindow\sduring\sthe\srebuild\sitself.**\sZITEVT\sis\scapped\s(1\sGiB,\sone\shour,\sdiscard-old)\sand\s`flushBytes`\sbounds\sone\sburst\sat\s64\sMB,\sbut\stk\sis\sthe\slargest\sticket\scorpus\sin\sthe\sfleet\s—\s12,028\stickets,\s69,182\sartifacts.\sIf\sa\sfold\sis\sslow\senough\sthat\sa\sburst's\shead\sages\spast\sMaxAge\swhile\sits\stail\sis\sstill\sbeing\swritten,\sthe\shead\sis\sdropped\sunacked\sand\snever\srepublished.\sThat\sis\sthe\ssame\smechanism\sthat\scaused\sthe\soriginal\sdamage,\sjust\sreached\sby\stime\srather\sthan\ssize,\sand\s`flushBytes`\sdoes\snot\sdefend\sagainst\sit.\n2.\s**An\sartifact\sthat\sfails\sto\sparse\sis\sskipped\ssilently.**\s`each`\slogs\s"treating\sas\scontent"\sand\sreturns\snil\sfor\sa\snil\sparse.\sIf\stk\sholds\san\sartifact\sshape\sthe\sparser\sdrops\sentirely,\sits\sedges\swould\sdangle\sforever\sand\sno\srebuild\swould\shelp.\sCheck\swhether\sthe\smissing\shashes\sparse\sat\sall.\n3.\s**A\sfold\serror\smid-batch.**\sFold\sis\sone\stransaction\sper\sfetched\sbatch\sand\sonly\sacks\son\ssuccess,\sso\sthis\sshould\sbe\ssafe\s—\sbut\sit\sis\sworth\sconfirming\sthe\sspecific\shashes\sare\snot\sin\sa\sbatch\sthat\sconsistently\serrors.\n\n##\sWhere\sto\sstart\n\nGet\sthe\shashes,\sthen\sask\swhat\sthey\sare:\n\n\s\s\s\sSELECT\sDISTINCT\sp.parent\sFROM\scheckin_parent\sp\n\s\s\s\sWHERE\sNOT\sEXISTS\s(SELECT\s1\sFROM\scheckin\sWHERE\shash\s=\sp.parent)\n\nand\sfor\seach,\s`zit\sartifact\s<hash>\s-R\s<store>`\sto\ssee\sits\stype\sand\scards.\sIf\sthey\sare\sall\sone\sartifact\stype,\slead\s2\sis\sthe\sanswer.\n\n##\sWhy\sit\smatters\n\nA\smissing\scheck-in\sis\snot\sa\scosmetic\sgap.\sIt\sorphans\sthe\sDAG:\sthe\stimeline\sdraws\sa\ssecond\sbranch\srail\swhere\sthere\sis\sone\sbranch,\sand\smarks\sa\smid-history\scommit\sas\sa\sleaf.\sThat\sis\show\sthis\swhole\sclass\sof\sbug\swas\sfound\s—\sthe\sfleet\spage\ssaid\s`ok`\swhile\sthe\sindex\swas\squietly\sserving\san\sincomplete\shistory\sas\sthough\sit\swere\swhole.
J severity Important
J status Open
J title tk:\sartifacts\sthe\sstore\sholds\sare\smissing\sfrom\sthe\sindex\sand\sa\srebuild\sdoes\snot\srestore\sthem
J type Code_Defect
K d725bd29c55ed2320a02ae0142222abca12ecefa
U dmestas
Z 2250f56d735ba815e4cd268039d56717