Resuming an Event Stream with a Cursor, a Bounded Log and a Snapshot

How a client catches up after a reconnect without losing state, without duplicates, and without re-reading history. Built in steps (versions 0 to 4), from “read everything again” to a bounded log with a snapshot fallback, with what a real browser’s EventSource does on reconnect and on a non-200 response, a snapshot-ordering bug, and a decision tree.

September 4, 2026 | 17 min

Retries Duplicate Your Writes, and Exactly-Once Won't Save You

When a request times out, the client cannot tell whether the request or only its acknowledgement was lost. This is why exactly-once delivery cannot be built, and why effectively-once processing is at-least-once delivery plus a receiver that deduplicates. A runnable experiment with a flaky network, the bug that still duplicates 89 of 200 requests, an atomic dedupe store, and a jitter simulation.

August 28, 2026 | 16 min

Behind NAT, the Machine Dials Out

When an agent lives on a machine that cannot open an inbound port, the server never connects to it. The machine reports liveness over short outbound HTTPS requests and fetches work with a separate one. Silence is kept apart from a stop, and the destination of a piece of work is fixed when it is submitted, so silence never moves it to another machine. Includes a minimal PostgreSQL version with a partial unique index and FOR NO KEY UPDATE.

August 3, 2026 | 8 min