/** * Pure quota-reset detection: two consecutive observations of one usage window in, at most * one reset event out. * * Nothing here reads a clock, a config, or the disk. `now` is a parameter so a test can * place a deadline in the past without waiting for it, and so the same snapshot pair always * yields the same answer. * * Design and the seven false-positive traps this guards against: * devlog/_plan/260828_quota_reset_detection/000_plan.md */ /** One observed usage window, normalized away from provider-specific field names. */ export type QuotaWindowObservation = { /** Window identity: "5h", "weekly", "monthly", or "custom: