Technology

Engineering record

Records and dataIn use

Saving watch records without the phone

Until now, saving the watch’s records required the phone. We treat the watch as a separate device on the account, so it can save records without the phone.

At first, the phone lent the account's records to the watch. When a workout ended on the watch, the phone received the record and saved it to the server. That's a natural flow if the phone is always nearby. But some people go out wearing only the watch. If the phone stays off for a week, a week of workouts stays only on the watch.

Would it work if the phone fetched the watch's records more often? If the phone is off, there's no way. We have to change the idea that the phone is the gateway for every record. So the watch reads records with its own session and saves straight to the server.

How does the watch sign in?

We tried passkey sign-in on the watch, but watchOS has no passkey API. Instead we use a watch-only session tied to the phone's sign-in. When the phone's sign-in ends, the watch's session ends with it. For the watch to be an independent device, it needs the phone at the start. Sending records while the app is in the background can't be verified in the simulator, so we left it out of this scope.

What was the model checking?

The independent audit doubted the model too. Five of the conditions that must always hold were written so that they couldn't fail even with a defect. The replay was also adding one action the model hadn't chosen. Having a model and a passing replay wasn't enough. If we can't explain what going wrong would make a condition fail, that condition hasn't checked anything yet.

Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.