The Vanishing Keystrokes Bug

How a faceless background agent ate my typing, and the script that caught it.