Blog
Popular this month

28 November 2026
Thirteen Unit Tests Passed and Production Disagreed
I filtered link prefetches out of pageview tracking, wrote tests, and they all passed. Production still recorded four out of five test requests. The tests called the middleware directly and skipped the layer that rewrites the headers it reads.

24 November 2026
Building the Image in CI and Shipping It Over SSH
The production host has under 4 GB of memory and a Next.js build wants about 2 GB of it. So the host stopped building: CI builds the image, streams it over SSH, and the host only loads it, switches to it and rolls back if the health check fails.

20 November 2026
A Deploy That Failed Safely Three Times
After a Prisma major upgrade, production deploys failed three times in a row and nobody reported it. The site never went down, because one line of shell made the script stop before it replaced the running container. The cause was a single file missing from a Docker stage.

16 November 2026
A Network Test That Was Lying to Me
The app could not reach its database, and a quick connectivity test inside the container said the network was broken. The test itself was wrong: it used a feature that only exists in bash, in a container that runs a different shell.

12 November 2026
The Uptime Monitor That Kept the Database Awake
A health check every 60 seconds looked harmless. On a serverless database that only sleeps after five idle minutes, it meant the database never slept, the free compute quota ran out, and nobody was told because the monitor had nobody to notify.

8 November 2026
Fixing an Advisory That Can't Be Reached Anyway
A moderate Dependabot alert landed on a dev-only transitive dependency that never sees untrusted input. Fixing it was still worth ten minutes, with a narrowly scoped override, a way out, and the checks that prove nothing else moved.

4 November 2026
Testing a Prometheus Exporter Without Prometheus
A small Python exporter turns the Checkmk REST API into Prometheus metrics, and it had no tests. You do not need a Prometheus server to test one: mock the API call and read the values straight out of the client registry.

31 October 2026
A Local Tool With No Login Still Needs a Host Check
A dashboard that only listens on localhost still talks to your browser, and any web page open in that browser can try to talk to it too. Three small checks keep working-agents from leaking session data to a random tab.

27 October 2026
Hooks First, Transcript as Fallback: Two Layers of Truth for Agent Status
working-agents shows every running Claude Code session as a character in a pixel-art office. Knowing whether a session is working, waiting or idle takes two sources: precise hook events when they exist, and the session transcript when they do not.

23 October 2026
The Export That Vanished in a Minor Release
CI on a small CLI went red with no code change. The error said Chromium was not installed, which was wrong; the real cause was a dependency subpath that a newer release no longer exports, and an error message that guessed.