Skip to content
quarry Artifact [635a0488b1]
Login

Artifact [635a0488b1]

Artifact 635a0488b19f13ab177dbee25d0d7f7d603fb1075812b11f40153871b836ce87:

Ticket change [635a0488b1] - New ticket [0c51d50626] A failed fold must never advance the cursor: silent, permanent index loss. by dmestas on 2026-08-19 10:43:52.
D 2026-08-19T10:43:52.761
J cmimetype text/x-markdown
J comment A\sfold\sthat\sfails\sleaves\sits\sartifacts\sunacked,\sthe\spublisher\scursor\nadvances\son\sa\slater\shealthy\sround,\sand\sthe\smessages\sage\sout\sof\sthe\nbounded\sstream\s(1\sGiB,\sone\shour,\sdiscard-old).\sThe\sartifacts\sare\sthen\nnever\srepublished.\sNothing\serrors\sat\sthe\smoment\sof\sloss.\sEvery\ssurface\nbuilt\son\sthe\sindex\srenders\sthe\shole\sas\sif\sit\swere\sthe\struth,\sand\sthe\nonly\srepair\sis\sa\sfull\sstore\sre-read,\swhich\sneeds\sexclusive\saccess\sto\sthe\nindex\sfiles\s—\sso\srecovering\scosts\san\soutage.\n\nObserved\stwice\snow:\n\n-\sas\s"2\sbranches\son\sthe\stimeline"\swhen\sa\scheck-in\swent\smissing;\n-\sagain\son\s2026-08-19,\swhen\sa\sschema\schange\smade\severy\sticket\sfold\sfail\n\s\swith\s"no\ssuch\scolumn".\sFolds\serrored\sfor\sminutes,\sthe\scursor\sadvanced,\n\s\sand\s`ticket_change`\swent\sto\s0\srows\son\sa\sstore\sthat\sholds\sthousands.\n\s\sThe\sfailure\swas\sloud\sin\sthe\slog\sand\scompletely\sinvisible\sin\sthe\sdata.\n\n###\sRequired\n\n**A\sfailed\sfold\smust\snot\sadvance\sthe\scursor.**\sRetry\swith\sbackoff;\sif\san\nartifact\skeeps\sfailing,\sstop\sthe\spipeline\sfor\sthat\srepository\sand\salarm.\nA\sstalled\sindexer\sthat\ssays\sso\sis\sstrictly\sbetter\sthan\sa\ssilently\nincomplete\sone\sthat\slooks\shealthy\s—\sthe\sstore\sis\salways\scorrect,\sso\nstopping\sloses\snothing\sbut\stime.\n\n###\sAlso\sneeded\n\n-\sA\spost-fold\scompleteness\sinvariant:\sartifacts\sthe\sstore\sholds\sversus\n\s\sartifacts\sthe\sindex\saccounts\sfor,\schecked\sper\sround,\salarming\son\n\s\sdivergence.\s`lostArtifacts`\salready\sdoes\sthis\sfor\sdangling\sparents;\n\s\sgeneralise\sit\srather\sthan\sadding\sa\ssecond\smechanism.\n-\sThe\scheck\sbelongs\sin\sthe\sserving\spath,\snot\sonly\sin\sthe\sharness.\sThe\n\s\sdisposability\stest\sproves\sa\srebuild\sis\sfaithful;\snothing\scurrently\n\s\sproves\sthe\sRUNNING\sindex\sis.\n\nRelated:\s#d725bd29c5\s(tk:\sartifacts\sthe\sstore\sholds\sare\smissing\sand\sa\nrebuild\sdoes\snot\srepair\sit)\sis\svery\slikely\sthe\ssame\sroot\scause.
J priority Immediate
J severity Critical
J status Open
J subsystem ingest
J title A\sfailed\sfold\smust\snever\sadvance\sthe\scursor:\ssilent,\spermanent\sindex\sloss
J type Code_Defect
K 0c51d50626446d4f6139a09ed55485fd30cf0a8b
U dmestas
Z 1c1ca4d8b9734e2099fd8031791b0e41