//! **A copy put in place and not yet claimed says so on disk.**//!//! A whole copy arrives stamped with the serving Mac's device and author, and//! only the claim makes it this device's. Until 12 Oct 2026 a copy that would//! not open or claim was deleted on probation, so "a file at the live name"//! could be read as "a file this device claimed". The architect's ruling of//! that night keeps every file that is there — a copy that cannot be opened,//! moved, claimed or verified stays, and the open stops on an honest page —//! so a kept, unclaimed copy would otherwise open on the next launch as if it//! were this device's and mint under the Mac's author: two machines, one//! stream.//!//! So the phone's snapshot download wrote this mark BEFORE it renamed a copy//! onto the live name, and the claim clears it AFTER its transaction commits.//! Nothing here writes one any more; a copy an earlier build left marked is//! still read as one. A marked file whose `_meta.device_id` is not this device's is claimed by//! the next open (never fetched again); a marked file that already names this//! device is one whose claim committed before the process died, and only the//! mark goes.use std::path::{Path, PathBuf};pub(crate) const SUFFIX: &str = ".unclaimed";pub(crate) fn path(replica: &Path) -> PathBuf {letmut name = replica.file_name().unwrap_or_default().to_os_string(); name.push(SUFFIX); replica.with_file_name(name)}pub(crate) fn is_marked(replica: &Path) -> bool { path(replica).exists()}/// After the claim committed, or when the mark outlived its file.pub(crate) fn clear(replica: &Path) {// not a copy: the claim mark beside it.let _ = std::fs::remove_file(path(replica));}