"Opening a file from Finder, Open With, drag/drop, or NSOpenPanel is a separate standalone file-open path. It may carry a file URL because macOS/user intent is the authority."
Two Doors, Two Authorities
After four lessons of "never a path," here's the twist that keeps the rule from becoming dogma: Ashen Reel opens paths all the time. When you drag a file onto the window, or use Open With, or pick a file from an open panel, a real file URL flows in — and that's completely fine. The identity-only rule was never about paths being evil. It was about who is allowed to choose the target.
The Recall deep link and the user file-open are two different doors with two different sources of authority. The deep link comes from an untrusted caller a web page could impersonate, so it gets identity-only and both-sides validation. The file-open comes from the user themselves, mediated by macOS, so a path is exactly the right thing to carry — the person sitting at the keyboard is the authority, and they picked the file on purpose.
Why You Must Keep Them Apart in Code
Imagine the two mistakes. Route every Finder open through the identity-only resolver, and normal use breaks — the user's own MKV on the Desktop has no video_id, so a perfectly legitimate file becomes unopenable. Route the Recall deep link through the user-open path, and you've handed the attacker exactly the path-acceptance you spent the whole track removing. The doors have to stay physically separate, each carrying its own trust assumption in its own function.
The two entry points, side by side, each honest about where its trust comes from:
The Rule, Generalized
This is a pattern you'll reuse far beyond a video player. Any app with more than one way in — a CLI flag and a config file, an API request and an admin console, a webhook and a human form — has more than one authority, and they rarely deserve the same trust. The discipline is to name each entry point's authority out loud and validate to that, never to average them into one lukewarm policy that's too strict for the human and too loose for the stranger.