The Cloudflare Worker That Ran Perfectly and Still Failed Twice A developer building workers-monitor, a Cloudflare Worker that monitors a fleet of Workers, discovered two bugs where code compiled and ran without errors but failed to perform its intended function. The first bug involved a maintenance-window feature that could silently abort the entire hourly run on a KV read failure, violating the rule that malformed data must fail open. The second bug was that Sentry monitoring for the Worker itself was not actually reporting check-ins despite successful execution, requiring a fix to ensure proper cron monitoring. This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry. workers-monitor is a Cloudflare Worker that watches a small fleet of my own Workers. Hourly cron, pulls fleet metrics from Cloudflare's GraphQL Analytics API, runs a deterministic threshold gate, and only calls Claude Haiku to judge signal-vs-noise if the gate trips. If Haiku confirms something's actually wrong, it sends a Telegram alert. A quiet hour makes zero LLM calls. github.com/dannwaneri/workers-monitor https://github.com/dannwaneri/workers-monitor Real alert history from the deployed Worker — the daily heartbeat, and scrolled back, the genuine incidents this system has actually caught. This submission covers two bugs, found days apart, that turn out to be the same failure mode wearing different clothes: code that compiles, deploys cleanly, and runs without throwing — and still doesn't do the one thing it was written for. "No error" is not the same claim as "working correctly," and both bugs below only exist because that distinction got missed once. workers-monitor has a maintenance-window feature — POST a start/end time and it suppresses Telegram alerts during a planned deploy, without stopping the gate or the logging. The function that reads that window had one non-negotiable rule, written as a comment directly above it: Malformed data fails OPEN returns null → no suppression — a broken window read must never accidentally silence a real incident. The code didn't actually satisfy that comment: async function readMaintenanceWindow env: Env : Promise