Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5fc56299af3031edbc11475ba42572d83ee0f59085a7f002af806f1ca886319e
Ticket: 2276e92f75d0c2a472fb1c087422132f80a5c88f
Server errors: capture in a ring, surface on /fleet, notify on first sighting
User & Date: dmestas on 2026-08-19 18:53:02
Changes

  1. icomment:
    Built (1412e9e4), order items 1–3:
    
    - `internal/errlog`: bounded ring (500 signatures), DEDUPED BY MESSAGE
      — a hot loop is one row with a count. Eviction removes the signature
      least recently SEEN, so an error still happening is never displaced
      by one that stopped. OnFirst hook fires exactly once per signature.
    - All three funnels report: web fail()'s default case, the API
      router's 500 branch, and a new recovery middleware wrapping the whole
      handler tree — a panic is now a recorded entry and a clean 500
      instead of a dropped connection and an unread stack (the stack still
      goes to the log).
    - /fleet: "N server errors" badge in the summary line and a Server
      errors table (last seen, count, surface, path, message). fleet.status
      carries errors[] and errorTotal, so the API sees what the page sees.
    - Notify: quarry-error fires on a signature's FIRST sighting only,
      wired at the composition root where the notify plane is configured.
    
    End-to-end test drives a real panic through a real server and asserts
    the clean 500, the journal entry, and the row on /fleet.
    
    Remaining (order item 4 + durability): the per-row "file ticket"
    button (needs the new-ticket form to accept prefill), and the
    --errorlog append file for post-restart forensics.
    
  2. mimetype: "text/x-markdown"
  3. status changed to: "Review"