All posts

A library that failed to load looks like an empty one

Delete a map on the Maps tab and the app tells you what will happen: “It moves to Recently Deleted, where you can bring it back for 7 days. Its placement on Earth comes back with it.”

The second sentence is a promise to keep something. So something else has to decide the moment it must stop being kept.

One place, two stores

A place in iseeido is held in two parts. The map (the scan, the floor plan, the spots you tagged) lives in the library, which is ICIDO’s code, compiled into iseeido. Where the place sits on Earth is iseeido’s own addition: its position, which way it faces, and its doors. That placement is kept in a single file beside the library, filed under the place’s id. It sits outside the library on purpose, so that ICIDO’s own format never had to change.

Deletion is where that split costs something. When a place is erased for good, the library removes the place’s own files “and nothing else”, in the words of iseeido’s code. The placement is left behind in the other file, and a placement is not a harmless leftover. It holds the exact coordinates of a place you scanned.

The obvious clean-up

Until build 10, the app tidied up the obvious way. At the end of every import, the app compared the two stores and dropped each placement whose place was neither in the library nor in Recently Deleted.

That had two faults. It ran only inside an import, so if you never imported another map, a deleted place’s coordinates stayed on the phone. And it trusted the list it was comparing against. The note that now stands where that code used to be puts it plainly: “a library that failed to load reads as empty, so the first import after that erased every placement on the phone”.

Placements Library Map 1 Map 2 Map 3 Reads as empty Not in the library, so erased
The old clean-up. Checked against a library that reads as empty, every placement looks like a leftover, and all of them go.

An empty list can mean you deleted everything. It can also mean the list couldn’t be read. A comparison can’t tell those two apart, and it gives both the same answer.

Follow the deletion instead

Since build 8, a small part of the app called the deletion follower does this job, and it never checks placements against the library as a whole. It watches Recently Deleted, and keeps a list of the places it has seen there. A placement is erased only when a place on that list has left Recently Deleted and has not come back to the library.

The place Its placement Your maps Saved Delete Recently Deleted Kept, and noted Restore 7 days, or sooner Gone for good Erased
What the deletion follower does. A placement is kept while its place waits in Recently Deleted, and erased only once a place it has seen there is gone for good.

A place can leave Recently Deleted for good in three ways: you choose Delete for good, you choose Delete all, or its 7 days run out. The follower doesn’t need to know which. It sees the same thing each time: a place it had noted is no longer waiting, and is not among your maps.

Restore is the fourth way out, and the follower tells it apart by where the place ends up. Back in the library, it keeps its placement, doors included.

The strength of the rule is in what it can’t do. The follower can only erase the placement of a place it has itself seen deleted. A place you never deleted is not on its list, however the library reads on a bad day. The comparison at the end of an import was taken out in build 10.

  • 7 dayshow long a deleted place waits in Recently Deleted
  • 3ways a place goes for good, all noticed the same way
  • 8the build in which the deletion follower arrived

With the phone in your hand

Delete a map by mistake and restore it within 7 days, and there is nothing to line up again. It comes back where it was on Earth, with its doors marked.

Delete it for good and its position, its north and its doors go with it. So do the notes about that place from “Remember what I’ve seen”, if you had turned that on.

One thing stays. History keeps the names of places you’ve visited, including deleted ones, until you clear it. The privacy policy says so too.

The fine print
  • The follower’s list is saved between launches. The 7 day expiry is carried out by ICIDO’s library as it starts up, which the code describes as “before anything can be watching”. So at launch the follower first settles its saved list against what it finds.
  • A restore empties Recently Deleted a moment before the place is back in the library. In that gap a restored place would look erased, so the follower looks one turn of the run loop later.
  • Build 10 applied the same lesson to the placement file itself. If it can’t be read, the app starts with no placements, and the file is moved aside under a new name, not overwritten. Before that, in the code’s words, “the next save destroyed every placement for good”.