Implement a write-ahead log (WAL) key-value store with crash recovery. The store must support put(key…
Implement a write-ahead log (WAL) key-value store with crash recovery. The store must support put(key…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The goal: Produce a Python module at /wal kv store.py (importable as wal kv store with / on sys.path ) containing…
The task
**The goal:** Produce a Python module at `/wal_kv_store.py` (importable as `wal_kv_store` with `/` on `sys.path`) containing a class `WalKVStore` that implements the above contract exactly. The test will import it, instantiate it, call methods, and simulate crashes by deleting the in-memory state and calling…
Part of ai-and/termgrade-environments.