Skip to content
quarry Artifact [7c7490daf4]
Login

Artifact [7c7490daf4]

Artifact 7c7490daf4607fa3b29e7fedbb258d40c49f0826636332cb08ccb8357b71dfa9:

Ticket change [7c7490daf4] - New ticket [2276e92f75] Server errors: capture in a ring, surface on /fleet, notify on first sighting. by dmestas on 2026-08-19 18:24:29.
D 2026-08-19T18:24:29.868
J cmimetype text/x-markdown
J comment Today's\sstate:\severy\s500\swrites\sits\sreal\serror\sto\sstderr\sand\sshows\sthe\nreader\s"internal\serror".\sCorrect\shygiene,\sbut\sstderr\sis\swhere\serrors\sgo\nto\sbe\sunread\s—\son\sthe\sdev\sbox\sit\sis\sa\sfile\sin\s/tmp\sinterleaved\swith\ningest\schatter.\sEvery\s500\sfound\stoday\s(the\sfleet\stemplate\serror,\sthe\nfts\scorruption)\swas\sfound\sby\sa\sHUMAN\shitting\sthe\spage\sand\sreporting\sa\nscreenshot.\sThe\sfleet\spage\ssays\s"ok"\swhile\sthe\sweb\slayer\sburns.\n\n##\sDesign,\sin\squarry's\sown\sidioms\n\n**1.\sCapture:\sone\sseam.**\sBoth\sfunnels\salready\sexist\s—\sweb's\sfail()\ndefault\scase\sand\sthe\sAPI\srouter's\s500\sbranch\s—\splus\sa\snew\srecovery\nmiddleware\sfor\spanics\s(today\sa\shandler\spanic\sis\sGo's\sdefault:\sstack\sto\nstderr,\sconnection\sdropped,\sno\srecord).\sAll\sthree\sreport\sinto\san\nin-process\serror\sjournal:\sa\sbounded\sring\s(say\s500\sentries)\sof\n{first/last\sseen,\scount,\ssurface,\spath,\smessage},\sDEDUPED\sBY\sMESSAGE\nso\sa\shot\sloop\sis\sone\srow\swith\sa\scount,\snot\sa\sflood.\sAlongside\sit,\nfossil's\sexact\smechanism\sfor\sdurability:\san\s--errorlog\sfile,\sappended\nplainly,\srotated\sby\ssize.\sNo\snew\sstorage\stier;\sthe\sring\sis\sprocess\nstate\sand\shonest\sabout\sit.\n\n**2.\sSee:\sthe\sfleet\spage.**\sAn\sErrors\spanel\sbeside\singest\shealth\s—\nsame\sbadge\sidiom\s(red\scount\swhen\snonzero),\srows\snewest-first\swith\ncount\sand\slast-seen,\sadmin-gated\slike\sthe\srest\sof\s/fleet.\sThe\shealth\nJSON\sgains\serrors{total,\sdistinct,\slastAt}\sso\sthe\sAPI\ssees\swhat\sthe\npage\ssees.\n\n**3.\sReact:\sthe\snotify\splane.**\sfireNotify\salready\sreaches\sthe\ncompanion;\semit\squarry-error\son\sFIRST\sSIGHTING\sof\sa\snew\serror\nsignature\s(dedup\smakes\sthis\scheap),\snever\sper\soccurrence\s—\san\salert\nchannel\sthat\srepeats\sitself\sgets\smuted.\sWebhook\ssubscribers\sget\sthe\nsame\sevent.\n\n**4.\sTicket:\sa\shand\son\sthe\strigger,\snot\san\sautomaton.**\sAuto-filing\ntickets\sfrom\serrors\sis\show\sa\stracker\sfills\swith\s40\sduplicates\sof\sone\nbad\sdeploy.\sInstead:\seach\srow\son\sthe\sErrors\spanel\scarries\s"file\nticket",\sprefilled\s(title\s=\sthe\smessage,\sbody\s=\spath/surface/count/\nfirst-last\sseen,\ssubsystem\sguessed\sfrom\sthe\ssurface).\sOne\sclick,\shuman\njudgment,\sno\snoise.\n\n**Non-goals:**\sexternal\sobservability\svendors\s(the\sforge\sshould\snot\nneed\sone\sto\ssee\sitself);\sstack\straces\sin\sthe\sring\s(the\smessage\sand\npath\slocate\sthe\scode;\straces\sstay\sin\sthe\serrorlog).\n\n##\sOrder\n\n1.\sRecovery\smiddleware\s+\sring\s+\sthe\stwo\sfunnel\shookups\s(small,\sthe\n\s\s\svalue\score).\n2.\sFleet\spanel\s+\shealth\sJSON.\n3.\snotify\sevent.\n4.\sFile-ticket\sbutton.
J priority High
J severity Important
J status Open
J subsystem web
J title Server\serrors:\scapture\sin\sa\sring,\ssurface\son\s/fleet,\snotify\son\sfirst\ssighting
J type Feature_Request
K 2276e92f75d0c2a472fb1c087422132f80a5c88f
U dmestas
Z f4f5b62e21881a98dc90ea55d37fa882