Skip to content
quarry Artifact [ca59baa859]
Login

Artifact [ca59baa859]

Artifact ca59baa859e1fbc895db1f6863871f11fdabf4fadf3b6858cd9540a8e34cfcda:

Ticket change [ca59baa859] - Fixed ticket [0c51d50626]: A failed fold must never advance the cursor: silent, permanent index loss plus 3 other changes by dmestas on 2026-08-19 12:29:31.
D 2026-08-19T12:29:31.021
J icomment Fixed\sin\s02f05e42.\n\n**The\sinvariant,\senforced\sstructurally:**\s`watch`\sno\slonger\ssaves\sthe\npublisher\scursor\s—\sit\sreturns\sa\ssave\sclosure,\sand\s`round`\sinvokes\sit\nonly\safter\sthe\sfinal\sfold\ssucceeds.\sA\sfailed\sfold\snow\scosts\sone\nre-read-and-republish\sof\sthe\ssame\stail\snext\sround\s(idempotent\sfolds\nabsorb\sit);\sit\scan\sno\slonger\scost\sartifacts.\s`TestFailedFoldDoesNotAdvanceCursor`\nreproduces\sthe\sincident\sshape\s(fold\sfailing\sthe\sway\sthe\sschema\sbug\smade\nit\sfail)\sand\spins\sthe\scursor\sin\splace.\n\n**Stop\sand\salarm:**\safter\s3\sconsecutive\sfailures\sthe\spipeline\sSTALLS\s—\none\sloud\slog\sline\swith\sthe\scause,\s`stalled`\s+\s`retryAt`\son\sthe\shealth\nsurface\sand\sa\sred\sbadge\son\s/fleet,\sand\sexponential\sbackoff\s(30s\ndoubling,\scapped\s10m).\sBackoff\srather\sthan\sa\slatch:\sthe\sstore\sis\sintact\nand\sthe\scursor\sheld,\sso\swhen\sthe\scause\sis\sfixed\sthe\snext\sattempt\sheals\nwith\sno\soperator\sceremony.\s`quarry\sreindex`\sbypasses\sthe\sstall\ndeliberately.\sWhile\sstalled,\s`Sync`\sreturns\s`ErrStalled`;\sthe\spoller\ndoes\snot\sre-log\sit,\sand\sa\swrite\sop\streats\sit\sas\slag\srather\sthan\sfailing\na\swrite\sthe\sstore\salready\srecorded.\n`TestStallBacksOffAlarmsAndRecovers`\sdrives\sthe\sfull\sarc:\sfail,\sstall,\nrefuse,\sheal.\n\n**Found\swhile\stesting:**\sa\sround\safter\sa\sfailed\sfold\sblocks\sin\sthe\ndrain\sloop\sup\sto\sthe\sconsumer's\sAckWait\s(30s)\swaiting\sfor\sredelivery.\nThe\swait\sis\shonest\s—\sbreaking\searly\swould\slet\sthe\scursor\ssave\swith\nmessages\sunfolded\s—\sso\sit\sis\snow\san\sexplicit,\sconfigurable\sknob\n(`ackWait`)\srather\sthan\san\saccident\sof\sNATS\sdefaults.\n\n**Remaining\s(not\sblocking\sclosure):**\sthe\sgeneralized\sper-round\ncompleteness\sinvariant.\s`lostArtifacts`\salready\sprobes\sdangling\sparents\neach\sround\sand\sfeeds\sGaps\son\s/fleet;\swidening\sit\sbeyond\sparent\sedges\sis\nfollow-on\swork,\stracked\salongside\s#d725bd29c5\swhere\sthe\squestion\sis\nlive.
J mimetype text/x-markdown
J resolution Fixed
J status Fixed
K 0c51d50626446d4f6139a09ed55485fd30cf0a8b
U dmestas
Z d87e4208ccdc3236e1b1f63950af4837