Three-Phase Rep State Machine (REST -> TRANSITION -> ACTIVE)
Deterministic rep-counting state model used by FITAI across counted exercises. A repetition completes only after passing cleanly from standing/lockout readiness (REST), through mid-range movement (TRANSITION), to target joint depth (ACTIVE), and back.
Example (Squat): knee_angle > 160° (REST) -> 100°–160° -> <= 100° (ACTIVE)
Inspect Squat thresholds