Technology

Engineering record

EnginePartly changed

Moving screen decisions into the Rust engine

When a screen decides which buttons to show, the watch and lock screen have to make the same decision themselves. We move these decisions, and the text on screen, into the Rust engine.

Until now the engine reported facts, and the screen decided which buttons to show. With only a phone, that looks like a natural split. But once there's a watch and a lock screen, the same decision gets made three times over the same facts. If even one place decides differently, a button that doesn't exist on the phone can show up on the watch.

Let's make the decision only once. The engine decides even which buttons can be pressed right now. We generate TypeScript, Swift and Kotlin types from the Rust types so all three places receive the same data.

We'll go one step further here. The engine could complete even the sentences that appear on screen. If the decision and the sentence live together, no screen will piece the sentences together differently.

That way the phone, the watch and the lock screen all use the same decision and the same sentences.

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