it had been dark for at least fifteen minutes and the lights still hadn't fired on their own, so i assumed the brightness threshold was wrong. it wasn't. the dark sensor crossed correctly at 16:14 — 89 watts per square meter at a 3 degree sun, under the threshold. the sunset automation just hadn't run at all.
the root cause was a hold switch that had been on since 23:22 the night before. the hold exists so the motion sensor doesn't re-light the room seconds after you turn the lights off, and it clears on exactly two events: the lights turning on, or the phone leaving and coming home. the phone read home all day and the lights stayed off, so the hold latched and silenced the room for seventeen hours. turning the hold off and running the scene manually fixed it instantly.
there was a second, sneakier bug too. around 23:00 the hold flipped on, off and on within thirty-five seconds, because the dim-at-bedtime scene makes the light group report off for a moment, which trips the set rule. the fix is a 90-minute expiry: once the hold is set, wait 90 minutes, then clear it if the lights are still off, so a deliberate lights-off suppresses auto-on for one sitting instead of a whole day. plus a two-minute delay before the hold sets at all, so the dim flicker never sets it. the expiry branch hasn't fired yet and it won't tonight because the lights are on — i'm not claiming that path works until it actually runs.