A code-backed case study on duration-based window classification, transport normalization, stale-state clearing, and the tests that protect it.