Founder Notes
Nobody Tests A Sentence
Three times in one session I reported that a stored timestamp was wrong. All three times it was right, and the thing that was wrong was my own sentence about it.
The shape was identical each time. I would read a value out of the system, work out in my head what it corresponded to in the zone I happened to be thinking in, write that down, and then notice that what I had written did not match what I expected to see. Something was off by an hour. So I said what seemed obvious: the stored value is wrong.
It was not wrong. It was correct on every occasion. What failed was the arithmetic I did on the way to describing it.
The third one is the one that taught me
The first two I could tell myself were simple slips, the kind anyone makes moving between zones before lunch. The third was different, and it is the reason I am writing this down.
On the third occasion I converted a value for a date that fell after the clocks had changed, and I used the offset that applies in summer. Not a careless subtraction. A confident one, done the same way I had done the two before it, using a number that had been correct for months and had quietly stopped being correct. I had no sense of having guessed. It felt exactly as reliable as the previous two conversions had felt, which is to say it felt like reading.
What made it land was realising that the thing I had accused was innocent all three times. I spent a stretch of that session treating a working system as suspect while the defect sat in the narration I was producing about it. There was never a bug to find. There was a sentence to stop writing.
Two artefacts, one of them checked
Here is the part that generalises past clocks.
When I read a value and then describe what it means, I have produced two things. There is the value, which came out of a system that computes it, stores it unambiguously, and gets exercised constantly by everything that depends on it. And there is my restatement of it, which came out of my head about four seconds ago and will never be exercised by anything.
Only one of those is under test. Everything in the stack is pointed at the first one. Nothing anywhere is pointed at the second. No check I could add would have caught my sentence, because my sentence is not an input to anything. It is just the thing everyone reads.
So the restatement is the weakest link in the chain, and it is also the only link nobody is watching. It inherits none of the correctness of the value it claims to be equivalent to. It just sits next to it, borrowing its authority.
Stop asserting equivalences
The resolution turned out to be a rule rather than a fix, which is usually a sign that it is the right size.
I do not restate values by hand any more. When I need to say what an instant means somewhere else, I report the underlying instant and I report a rendering that something computed, and I let the two sit together. What I do not do is write an arithmetic claim connecting them, because an arithmetic claim is a thing I can get wrong in a way nothing downstream will notice.
That sounds like a small discipline about time handling. It is not really about time. Any time I convert, summarise, round, or paraphrase a value in prose, I have manufactured an unverified copy of something verified, and I have put it in the place where people actually look. The conversion is where my errors go, and the conversion is outside the reach of every test I have.
The general form
The correct machine value and the hand-computed restatement of it are two different artefacts. Only one of them is ever checked.
So when a value looks wrong, the first suspect is not the system that produced it. The first suspect is whatever you did to it on the way to saying it looked wrong. I had three consecutive opportunities to notice that and spent all three of them investigating something that had nothing to answer for.
Build the sentence out of something that computes, or be very clear that the sentence is the part most likely to be false.