pub(super) fn claim_most_recent(
scratch_dir: &Path,
candidates: Vec<Candidate>,
session_token: &str,
) -> Option<(String, String)>Expand description
Phase 2: try to atomically claim the most recent candidate. Claim files stop two concurrent calls returning the same backing file to different panes. Each claim file stores the per-process session token; a claim from a previous process (crash/restart) has a different token and is cleared so recovery works.