# celld's simulator uncovers hidden alarm race in Cloudflare Workers runtime

Original title: Deterministic Simulation Testing in Celld

> Hacker News story 50024805 · language: en · submitted 2026-10-09
> Web version: https://zeli.app/story/50024805
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 35 · by [handfuloflight](<https://news.ycombinator.com/user?id=handfuloflight>) · 💬 5
[original](<https://celld.dev/docs/engineering/deterministic-simulation-testing/>) · [HN discussion](<https://news.ycombinator.com/item?id=50024805>)

## Summary

celld, a runtime for Cloudflare Workers and Durable Objects, uses deterministic simulation testing to reproduce bugs that depend on event ordering. The simulator controls task scheduling, storage responses, and simulated time, using seeds to replay failures. It found an alarm race where a delayed cleanup deleted a wake entry needed by a new alarm, causing missed alarms after a node restart. The team fixed the design and added a regression test.

## Key quote

> When the simulator finally advanced that cleanup, it removed the 10:00 wake entry that the new alarm still needed.

## HN discussion (5 comments)

### [tontinton](<https://news.ycombinator.com/item?id=50040337>)

> In this day and age there's no excuse to not build a new distributed system without DST, the AI is not lazy.

### [mrkn1](<https://news.ycombinator.com/item?id=50041678>)

> \> once celld has confirmed they're no longer needed
>
> Isn't that the same check then act race in a new spot, and is it covered by an invariant?

### [winterqt](<https://news.ycombinator.com/item?id=50047632>)

> Obligatory "what is deterministic simulation testing" link to https://youtu.be/4fFDFbi3toc

---

## Cite

- Page: https://zeli.app/story/50024805
- Date: 2026-10-09
- Source: celld.dev (https://celld.dev/docs/engineering/deterministic-simulation-testing/)
- Hacker News: https://news.ycombinator.com/item?id=50024805

## Other languages

- zh: https://zeli.app/zh/story/50024805 · markdown: https://zeli.app/zh/story/50024805.md
- ja: https://zeli.app/ja/story/50024805 · markdown: https://zeli.app/ja/story/50024805.md
- ko: https://zeli.app/ko/story/50024805 · markdown: https://zeli.app/ko/story/50024805.md
- de: https://zeli.app/de/story/50024805 · markdown: https://zeli.app/de/story/50024805.md
- es: https://zeli.app/es/story/50024805 · markdown: https://zeli.app/es/story/50024805.md
- ru: https://zeli.app/ru/story/50024805 · markdown: https://zeli.app/ru/story/50024805.md
