PLANOMADThe technical decisions behind PLANOMAD’s products, the reasons for them, and what changed afterwards.
A partner workout looks like a turn-based game, but a set that has been done cannot be undone. We survey methods from turn-based games and distributed systems, and lay out what four designs solved, the assumption that blocked them in the end, and the structure we are now examining.
The red phones store or compute the shared progress.
After handling an action, the engine doesn’t know what changed, so it rereads and compares the state needed by the screen, lock screen, watch and widgets. We look at the cause and the alternatives.
When a replay fails, we check whether that sequence can really happen before changing the engine. If it can’t, we fix the model and the replay.
Even after we let each phone own its own state, partner workout defects kept coming back. Before the transport, we had to look again at the premise that the turn is computed from personal records.
We turned Bluetooth on from the partner-finding screen, and nothing happened. The app learned that Bluetooth was off, then could no longer hear that it had come back on.
Where an expanded card appears differed from the space it actually occupies. We ran four experiments, separate from the app, to see whether we could make it simpler without the library.
To show the departing screen briefly, we kept adding timers and conditions. Before fixing the motion, we first looked at how many places were deciding the same screen.
All piecesScreens use React Native, product rules and on-device records use Rust, and the server runs on Supabase.
See the architectureConnecting two phones, and the turns and records of a shared workout
How the Rust engine handles the app’s decisions and state
Storing, reading, syncing and calculating records
Model checking, code audits and checks in the running app
Screen transitions, rendering and native libraries
Languages, frameworks and how code is shared
Server functions, the database and sign-in