Technology

Engineering record

Records and dataIn use

Keeping unknown fields when a record is saved

A record the app can read may still contain fields it doesn’t know. We keep those fields when the record is saved.

On November 9 we decided to skip records we can't read, without fixing or deleting them. It's different when a record we can read contains a new field. If an older app reads the whole record and then saves it again with only the fields it knows, the field the newer app added disappears. The older app doesn't think it deleted anything. It never knew the field was there.

At first the way the server replaces the whole record looked like the cause. But the server simply saved what the phone sent. The problem was that the phone rebuilt the record from only the fields it knew. Looking through the 30 kinds of records we send to the server, inner fields could disappear in 12 places across 6 kinds.

Send only what changed?

Sending only the changed parts to the server looks like it would spare us from rebuilding the whole record. But how do we tell a field the phone deliberately deleted from one it never knew about? In the end the phone has to hold even the fields it doesn't know. And in lists, an add or a move could be applied twice. Sending only changes can reduce how much we send, but it isn't a way of protecting unknown fields.

So the engine keeps unknown fields as they are, at whatever depth of the record they sit. This method needs no server change. From now on, as a rule, facts that change separately don't go into one big record but are split into separate records. We split routine and program rows into separate records today.

Looking again at the code that migrates old records, only 4 of 41 differences were changes of meaning. 28 were only differences in shape, and 9 removed old state or computed values we used to store. Many of them happened not because the product changed but because we put the design into the stored shape.

Some cases are still unsolved. In a list without IDs, we can't tell which element an unknown field belongs to. We found this problem by following the code and haven't actually reproduced it. A principle of preserving fields can't tell us whose field it is.

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