Type Alias: TrafficLight
TrafficLight =
"green"|"amber"|"red"|"unknown"
Defined in: src/lib/performance/index.ts:9
Pure contractor-performance scoring (no I/O).
Consistency is the average fraction of contracted hours met across the weeks a contractor was active in the lookback window — each week capped at 100% so overtime in one week can't paper over a short week (mirrors the pay engine's ratio cap). A traffic light is derived from consistency.