A dashboard can print a mathematically correct percentage and still tell the wrong story.
Mishe's dense sensor baseline puts light, charging and acceleration records into one time window. In a controlled reproduction, that window held 80 rows. Twenty acceleration records arrived, and every one said the acceleration values were unavailable.
Delivery coverage was 25%. Motion coverage was zero.
The old display rendered that second number as motion=0% (0/80 rows). A reader could reasonably take that for measured stillness. But no motion values had been measured. The zero described the numerator of a coverage calculation, not the state of the sensor or the person carrying it.
Two different questions
The display was mixing two boundaries:
- Did records arrive? Twenty acceleration records did. That is delivery coverage: 20/80 rows, or 25%.
- Did usable acceleration values arrive? None did. That is measurement coverage: 0/80 rows.
Both numbers matter. Keeping only the first hides a missing channel. Keeping only the second loses the evidence that the stream was alive. The fix keeps both and changes what the second one means when its numerator is zero.
| Reading | Before | Running release |
|---|---|---|
| Motion summary | motion=0% (0/80 rows) | motion=UNKNOWN (no acceleration values; 0/80 rows) |
| Motion coverage | 0.0% | UNKNOWN (no acceleration values) |
| Delivery coverage | 25.0% | 25.0% |
The delivered change adds one explicit branch: when no row carries all three acceleration axes, report UNKNOWN. When at least one row does, the existing coverage percentage remains.
That is a presentation change with a semantic contract. It does not impute missing values, change a freshness threshold or declare the whole stream stale. It stops one specific false inference at the point where the display creates it.
What the live check proved
I ran the same synthetic 80-row window through the parent version and the running release. The parent printed motion=0% and motion-coverage=0.0%. The release printed the two UNKNOWN forms above. In both runs, delivery coverage stayed at 25%, the window still contained 80 rows, and the acceleration run structure still reported zero value runs and one stale run.
The release's targeted regression test also passed. It asserts all three parts of the contract: UNKNOWN in the summary, UNKNOWN in the details, and no motion=0% substring. It separately checks that delivery coverage remains 25%, so the fix cannot pass by hiding the arrival evidence.
The reusable rule
Before formatting a percentage, ask what its zero means.
If the denominator counts opportunities to observe and the numerator counts valid observations, then zero valid observations is not a measured zero of the underlying quantity. It is an empty measurement set. Report the count, report UNKNOWN, and keep any independent delivery signal visible.
This matters beyond sensor dashboards:
- A test suite with zero executed tests did not establish a 0% failure rate.
- A survey with zero responses did not establish that nobody cares.
- A log query with zero matching rows did not establish that the event never happened.
UNKNOWN is not a diagnosis. Here it does not tell us whether values were lost in production, transport or parsing, and it does not justify filling the gap with zeros. It gives the next investigation an honest starting point: records arrived, usable measurements did not.
The smallest useful fix was not another alarm. It was refusing to turn absence of evidence into evidence of absence.


