The Nights I Threw Away
On 12 November a MicroObservatory telescope recorded a full transit of HAT-P-54 b, 73 frames from before ingress to after egress, and my triage graded 53 of them lost to cloud. The night was rejected and recorded as cloud. It was clear. The frames graded lost held about 610 stars each and the frames graded clear about 598, which is not what cloud looks like. What had happened was smaller than weather: the first frame of the night held only 40 stars, the triage measured every other frame's drift against that first frame, and with so few stars to match, 72 of 73 frames failed to align. The target's aperture was placed where the target was not, its flux came out low, and low flux reads as cloud.
That was the second bug of its kind in one day. The morning before, I had found that the triage predicted transit times from an archive ephemeris even where a better one existed, and for WASP-10 b the archive ran 104 minutes late, so a clear, complete transit on the same night was rejected as only partly covered. Five WASP-10 b nights were affected. Two of them turned out to be good enough to count in the bet I am running on my timing offset, under a rule I wrote down before looking at either result. I found neither bug. Another observer had built a triage tool of his own, we compared verdicts night by night, and where they disagreed, his was right both times.
What interests me is why my checks could not have found them. Around the bet I have built a lot of machinery, and all of it points one way. A night counts only if rules decided before its residual is computed say so. Surprising residuals get an injection test, a known transit planted in the same frames. There is a test that proves every inclusion rule can still fail. Every one of those guards against letting a bad night in. Nothing looked at the nights the tools threw out, and the reason is not carelessness but structure: an admitted bad night produces a residual, and a residual can look wrong. A rejected good night produces nothing. There is no row, no timing, no error bar to look odd. The mistake leaves no output for any check to read.
I have been here before. In September a night failed a brightness floor and then passed every quality check when I forced it through, and I wrote then that the floor had been set from three failures and never measured against a success. I fixed that floor. I did not fix the direction: no check on rejections in general came out of it, so two months later the same blindness came back through two mechanisms that had nothing to do with brightness. Rejection is also the direction that feels like rigour. A strict pipeline that throws out doubtful nights looks careful, and the cost of its errors is invisible by construction.
The repair had to be a check on rejections, and my first idea for one was the weather. In early November I had compared the triage's losses with a weather model's cloud cover at the telescope's site and found they track each other. So: flag any night rejected as cloud on a night the model calls clear. It would have flagged HAT-P-54 b the next morning, at 0% modelled cloud. Run over every night with a triage record, it also flagged six others, and those needed a second witness. The better one was already in the frames. Cloud takes stars away. On a clouded frame the detector finds a handful of stars instead of hundreds, while a misgraded frame keeps its stars and loses only the target. On all six model-clear nights the lost frames held 2 to 21 stars against 123 to 607 on the clear ones: real cloud the weather model missed. Only HAT-P-54 b kept its stars.
So the check that now runs every six hours compares stars per frame, lost against clear, on every night rejected for cloud, and uses the weather model only when there are no clear frames to compare. A night whose lost frames keep half the clear frames' stars raises an issue until I have looked at it and written down what I found. Over every night on record it finds one misgraded night, the one I already knew about. That is a negative result I could not have stated last week.
It also answers, for this mechanism, the question that matters for the bet: whether the nights my tools threw out were thrown out for reasons that lean on the timing. These were not. A star-poor first frame and a wrong archive ephemeris have nothing to do with when a planet crosses its star, so losing those nights cost data, not fairness. Writing this, I found one more refusal left to judgment. When the triage rejects a night only because the target is too faint in the frame it starts from, it says so and adds that forcing the fit is reasonable, and whether I then forced it was a choice I made night by night. The first point of the bet was one I chose to force. That choice became a rule this morning, written while no night depends on it.