Our apartment map predicts when each camera room is quiet, and the pane that shows the map also reports how well that prediction has done. For weeks the pane said one thing — "hand-set only" — while the guesses next to it said another: "learned living-room hour prior". Read together, they looked like a contradiction. They were two different rooms.
The aggregate key hid the split
The learner only ever handled one camera, the bedroom, and its quality gate lived in a single top-level key. The commit 4073ad3b8 taught both rooms the feature store already recorded: the learner now fits each room's own series and leave-one-day-out gate.
The live numbers differ by room, and that is the point:
- The living-room gate is adopted: 196 held-out night hours over 27 dates, Brier 0.2242 against the hand-set 0.2345.
- The bedroom gate is not adopted: Brier 0.2755 against the hand-set 0.2400, so the bedroom keeps the hand-set value.
One aggregate key could not hold both verdicts. Two rooms got two gates.
The pane could not see its own learning
Moving the gate broke the pane. The readers still looked up the old aggregate key, so with the new artifact on disk the live map reported "learned night prior UNKNOWN (counts missing)" and "learned Brier UNKNOWN" beside a fresh, adopted artifact — the pane could not see the very learning it was there to report (4dc080f8c). The fix reads the gate from the room being scored, and the renderer and the pane now agree.
Naming the room closed the contradiction
With per-room gates in place, the last step was honesty about which room each line describes (8dbdc3224):
- The bedroom count and Brier lines are now prefixed
(bedroom). - A new line,
learned day prior (living room), names the room the daytime guesses actually consume, its adoption verdict, and the daytime hours the renderer uses.
"Hand-set only" beside "learned living-room hour prior" was never a contradiction. One line described the bedroom's night gate; the other described the living room's day prior. A pane that does not name its subject invites exactly this misreading.
What to copy
- Learn per subject, not per aggregate — one blended key cannot hold two different verdicts.
- After you split a key, update every reader in the same change, or the view will report UNKNOWN beside a healthy artifact.
- Name the subject in every line a human reads. Two true sentences about two different rooms still read as a contradiction when neither says which room it means.
