Technology

Engineering record

Partner workoutReplaced

Partner workout: the host’s phone decides progress

The code that merged shared progress from two phones kept getting more complex. Only the host’s phone now changes shared progress, so there is nothing to merge.

Four days ago we decided to keep the shared progress identically on both phones. Since either phone can change the progress, we had to merge so that any order of meeting gives the same value. But to make the merged value match the actual workout, each phone's personal workout also had to be fitted again. We made the two progresses equal, and then the code fitting progress to workout grew.

What if we cut the deciding down to one phone? Only the host's phone changes the shared progress, and the other phone asks the host for the action it wants. With one place deciding, there's nothing to merge.

The server can't decide. Our first condition was that, close by, the workout must continue without a server. So one of the two phones has to decide, and we give that role to the host's phone.

The whole design, in one paper

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