Skip to content
quarry Artifact [03b8abff2e]
Login

Artifact [03b8abff2e]

Artifact 03b8abff2e524ad2e73532e01bc337bb69a210394461b9ba9f66d332a9f13967:

Ticket change [03b8abff2e] - New ticket [f6acf6b547] a landing's check-ins are ordered by date, which is arbitrary with respect to ancestry. by ai-local on 2026-08-23 22:14:28.
D 2026-08-23T22:14:28.137
J cmimetype text/x-markdown
J comment zit#133\sshipped\s`landing\sshow`\swith\sthe\sbranch's\scheck-ins,\sand\sits\sown\se2e\stest\scaught\sa\sbug\sworth\sinheriting\srather\sthan\srepeating.\sQuarry\shas\sthe\ssame\sbug\sin\sthe\scheck-in\slist\sI\sadded\sto\sthe\slanding\spage\stoday.\n\n##\sThe\sbug\szit\sfound\n\n>\sThe\sfirst\simplementation\ssorted\scheck-ins\sby\smtime,\shash\sas\stiebreak.\sThe\se2e\stest\sfailed\s—\sbecause\stwo\scommits\smade\sin\sthe\ssame\ssecond\stie\son\smtime\sand\sthen\sorder\sby\shash,\swhich\sis\sarbitrary\swith\srespect\sto\sancestry.\sA\sbranch's\sown\scommits\sdisplayed\sin\sthe\swrong\sorder\sis\sexactly\sthe\skind\sof\squiet\swrongness\sa\sreviewer\swould\strust.\n\nIts\sfix\swas\sto\sstop\shand-rolling\sthe\sorder:\s`repository.zig`'s\s`ancestryLinearized`\sgives\s"a\stopological\sorder\sin\swhich\severy\sparent\sprecedes\sits\schild\s…\sso\ssame-mtime\sand\snon-monotone\sparent/child\spairs\snever\sinvert",\sand\sstates\sthe\srule\soutright\s—\s**the\sverb\sowns\sno\sancestry\sordering\sof\sits\sown.**\n\n##\sWhere\squarry\shas\sit\n\nThe\slanding\spage\slists\sthe\sbranch's\scheck-ins\sthrough\s`timeline.list`\swith\sa\sbranch\sfilter,\swhich\sorders\sby\s`(date\sDESC,\shash\sDESC)`\s—\sexactly\sthe\ssort\szit\sjust\sremoved.\sTwo\scommits\sin\sthe\ssame\ssecond\srender\sin\shash\sorder,\swhich\shas\snothing\sto\sdo\swith\swhich\sis\sthe\sparent.\sOur\sown\scommits\sland\sback-to-back\sroutinely,\sso\sthis\sis\snot\sa\srare\sshape.\n\n##\sSecond\sdifference,\ssmaller\n\nzit\slists\scheck-ins\s"on\sthe\sbranch\sand\snot\son\sthe\starget",\sexcluding\sthe\sshared\sroot.\sQuarry\slists\sby\sbranch\sTAG.\sFor\san\sordinary\sbranch\sthese\scoincide;\sthey\sdiverge\sonce\sa\sbranch\shas\sbeen\smerged\sand\scontinued,\swhere\sa\stagged\scommit\smay\salready\sbe\son\sthe\starget.\n\n##\sFix\sshape\n\nWalk\sancestry,\sdo\snot\ssort\sby\sdate.\squarry's\sindex\scarries\s`checkin_parent(child,\sparent,\sord)`,\sso\sthe\sbranch's\scommits\sare\sa\swalk\sfrom\sthe\sbranch\stip\salong\sparents,\sstopping\sat\sthe\sfirst\scommit\sreachable\sfrom\sthe\starget\s—\sa\srecursive\sCTE,\sand\sthe\ssame\sanswer\szit\scomputes.\n\nWorth\sdoing\sas\sits\sown\schange\srather\sthan\sfolded\sinto\sa\sUI\stweak:\sordering\sthat\sis\sright\sby\sconstruction\sis\sthe\spoint,\sand\sa\stest\sthat\scommits\stwice\sin\sone\ssecond\sis\swhat\sproves\sit.\sThat\stest\sis\sthe\swhole\sreason\szit\scaught\sthis\sand\sreview\sdid\snot.
J severity Important
J status Open
J subsystem web
J title a\slanding's\scheck-ins\sare\sordered\sby\sdate,\swhich\sis\sarbitrary\swith\srespect\sto\sancestry
J type Code_Defect
K f6acf6b547318f765d60caff7f39dedb30687ae4
U ai-local
Z b7293cc2786c2d9e00e4f0f23ae7e2ad