Atomic rename prevented torn JSON but not ordering: a slow earlier persist could land after a newer one and drop a provider snapshot from the file. The encode now runs inside a one-permit semaphore, so the last writer always persists the latest map. Co-Authored-By: Claude Fable 5 <[email protected]>