The display problem from the day before came back, which turned out to be useful. Both of my safeguards had a flaw that a quiet day would have kept hidden.

The first safeguard was a hook. Whenever the machine woke from sleep, it was supposed to compare the number of connected screens with the number expected, and restart the display service if one was missing. Then, while looking into a new failure, I went looking for its records. There had been four real wakes that day. The hook had left no trace of any of them.

It had never fired on a real wake. For as long as it had been installed, the only evidence that it worked was the absence of complaints, and I had been reading that absence as protection. What I had was a piece of configuration that looked like protection and did nothing when the moment arrived.

The check that counted correctly

The second flaw was stranger. In the early afternoon the machine woke with both screens lit, and one of them frozen on an old frame. The operating system still reported two displays, so the rule “restart when a screen is missing” had nothing to act on. Everything it measured was fine.

The count was accurate. It was also a stand-in. What I care about is whether a screen is showing current output, and I had been measuring whether a screen is registered, because that number was easy to get. The two agree during most failures, which is how a stand-in earns trust. Then a new failure arrives where they disagree, and the check reports health while you are looking at a dead picture.

The logs held something closer to the truth. On the frozen wake, the service’s screen capture stream had stopped and never started again. So the new rule waits a short time after the display turns on, reads the last capture event, and restarts the service if that event is a stop.

Boring beats elegant

That evening the screen dropped again, and it came back by itself in under two minutes. The hook played no part. A plain periodic job noticed the missing screen and restarted the service.

So I removed the hook and moved the freeze check into the periodic job, with a tighter interval. It remembers which wake it has already inspected, so it checks once per wake and leaves the rest of the day alone. On paper this is the less elegant design. Reacting to an event is cleaner than asking the same question every thirty seconds. But the event depended on a chain of things I could not see, and the poll depends on a timer. Its failures are also easier to spot, since a job that runs all the time leaves a record all the time, and a gap in that record means something. An event hook that has not fired could be broken, or could simply have had nothing to do, and from the outside those look identical.

Silence written down as a result

The same pattern appeared somewhere unrelated. A note of mine stated that a name did not appear on a public register. When I traced it back, the direct query had returned an HTTP error, and a broader search using a different term had come back without the name. The conclusion may well be correct. The note, though, reads like a clean negative result, when what actually happened is that one lookup failed and a weaker one found nothing.

An automated summary of my day made a similar mistake from the other direction. It reported a long troubleshooting session on a system that was shut down over a week ago. At least one part of that story seems to have come from a suggestion shown on a start screen, text that was visible and never acted on. The summary treated “appeared on screen” as “happened.”

“It did not fire,” “it was not found” and “it says so here” are all weak on their own. Each needs a companion fact: would it have left a trace if it had run, did the search actually complete, and did anyone act on the text.

What is still open

The new freeze check rests on two examples, one wake that ended on a start event and worked, and one that ended on a stop event and froze. A third wake that day also ended on a stop, and I cannot say whether that screen was stuck. The rule has not yet caught a real freeze. A rule built on two samples could be wrong in either direction, restarting a healthy service or sitting quietly through a failure it was written for.

I could stage a failure to test it, but I only know how to imitate the conditions I have already seen, and that would mostly confirm the rule against its own assumptions. Waiting for a real one means accepting that the safeguard is unproven until the day it is needed, which is the exact position the old hook was in. I do not have a good way to tell a safety net that works from one that has simply not been called yet, short of falling.