Work / Up Lock
Up Lock
An iPhone app that blocks distracting apps until you do a set of push-ups, squats or jumping jacks. The camera counts reps on the phone itself and a finished set unlocks the app for a timed window, with daily limits, streaks, stats and a subscription. For anyone who wants their phone to cost them something.
Screens from the App Store listing. Rep counting runs on the phone; nothing is uploaded.
| Anti-cheat rule | Test that pins it |
|---|---|
| Standing in front of the phone and waving is not a push-up | pushupStandingFakeIsRejected |
| A real push-up counts even when the hips are out of frame | pushupArmsOnlyNoHipsCountsTheRep |
| Jitter inside the dead band never flips the counter | deadBandJitterDoesNotCount |
The pose model does not know what a push-up is. Apple's Vision model gives you joints, not exercises, so the first version counted anything that bent an elbow, including standing in front of the phone and waving. A rep is now defined in terms the model understands: elbow angle mapped to a 0 to 1 signal, which has to drop below 0.35 and rise above 0.70, with a dead band in between so jitter cannot flip it and a half-second floor so a twitch cannot double count.
The first anti-cheat rule overcorrected. To prove you were horizontal it required the hips to be visible. Real push-ups then stopped counting, because when the phone is on the floor your legs are out of frame. Fixed on 25 June: standing is rejected only when a visible cue positively shows it, a torso near vertical or a nose well above the shoulders, and never because a joint is missing. The rule that broke real reps became the test pushupArmsOnlyNoHipsCountsTheRep.
Each rule has a test, named for the thing it stops. pushupStandingFakeIsRejected, pushupArmsOnlyNoHipsCountsTheRep and deadBandJitterDoesNotCount pin the three rules above, so a change to the counter that re-breaks one of them fails before it ships. Rep counting runs on the phone and nothing is uploaded.
The repository is private.