# Conflict Resolution Specification ## 1. Overview Pad operates on a directory synced by Syncthing. External modifications to files originate from edits on other devices, delivered via Syncthing. This document specifies how Pad detects, classifies, and resolves such changes. ## 2. Syncthing Conflict File Format When Syncthing detects that two devices have modified the same file, it preserves both versions: - **Original file** (`notes.txt`) — the local device's version (what Pad edited) - **Conflict file** (`notes.sync-conflict-2024-05-15-1430-ABCDEF1.txt`) — the remote device's version **Naming pattern:** `.sync-conflict--