A user's backtracking term made each anonymize-form preview block the API's
event loop for ~1.2 s and fail with a 500. One per keystroke, 45 of them
froze every request for about a minute (12:59 UTC, 2026-11-30).
- Previews run on their own worker pool (1 worker by default). A preview
that runs past its deadline (3 s) terminates its worker and answers
422 anonymization_timeout; the form explains the term is too slow.
- One preview per user: a newer edit, or the client leaving, stops the
older preview (409 preview_superseded, logged at info).
- Slow (>=500 ms) or failed previews log an anonymization_preview record
with the project's repoId, input bytes and term count.
- Heartbeats carry the interval's worst event-loop delay (loopMaxMs,
loopP99Ms); a delay of 1 s or more logs event_loop_blocked at warn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>