Durable alarms: one-shot timers that survive restarts

One shared room, one pending alarm. ctx.setAlarm(at) arms it; onAlarm runs at the deadline with a fresh server ctx even if every tab is closed. The wow: schedule +2min, kill the worker (or redeploy) - the alarm still fires exactly once cluster-wide, and the fired record shows recovered: true when the restart ate the precise timer and the leader's recovery poll fired it instead.

Scheduling as Bouncy Narwhal

Schedule (one pending alarm per room - scheduling replaces it)

Pending alarm

No alarm pending.

Fired alarms (0, newest first)

Nothing has fired yet. Schedule one above.