"The disk is the database. Your app is a window, not a warehouse."
Who Owns the Truth?
Every serious file manager has to answer one question before it writes a line of code: where does the truth live? The tempting wrong answer is "in my app" — build a fast local index of the whole disk, show that, and reconcile later. It feels fast and it is a trap. The moment your index and the disk disagree — and they will, constantly, because other apps, Finder, and the OS all change files — your app is confidently showing a lie.
Waygate's Answer
The filesystem owns the files. Full stop. Bytes, names, metadata, permissions, mount contents — all canonical where they live. Waygate's database stores exactly three kinds of thing: workspace state (which folders are open, tab and window layout), references (bookmarks and resource identifiers that point at files without copying them), and operation evidence (the journal of what it did). Never a mirror of the directory tree.
The Projection Discipline
What you see in a Waygate pane is a projection: a fresh read of a live location, rendered into rows. Close the app, reopen it, and it doesn't restore "the files" — it restores the reference to the folder and re-reads it. If the folder changed while the app was closed, the new read shows the change. There is no cached truth to go stale, because there was never a cached truth at all.