HF RL Explorer

Implement a write-ahead log (WAL) key-value store with crash recovery. The store must persist data to disk…

Implement a write-ahead log (WAL) key-value store with crash recovery. The store must persist data to disk…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Storage files (all in /app/data/ ): - /app/data/store.db — The main key-value store file, one entry per…

The task

**Storage files (all in `/app/data/`):** - `/app/data/store.db` — The main key-value store file, one entry per line: `key\tvalue\n` (tab-separated, newline-terminated). Keys appear at most once. Sorted lexicographically by key bytes (not Unicode codepoints — use raw bytes comparison). - `/app/data/wal.log` —…

Part of ai-and/termgrade-environments.