{"id":"btree-wal-truncate-is-safe","text":"The B-tree's WAL `commit()` only truncates after fsyncing the data file, making truncation idempotent — a crash mid-truncation simply replays the WAL entries again on recovery","truth_value":"IN","source":"entries/2026/05/28/topic-truncation-crash-safety.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"explanation":{"steps":[{"node":"btree-wal-truncate-is-safe","truth_value":"IN","reason":"premise"}]}}