HF RL Explorer

Implement a simple Write-Ahead Log (WAL) key-value store as a single Python 3 script /app/kv store.py that…

Implement a simple Write-Ahead Log (WAL) key-value store as a single Python 3 script /app/kv store.py that…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The WAL must be stored at /app/data/kv.wal . The store must recover its state from the WAL on every…

The task

The WAL must be stored at `/app/data/kv.wal`. The store must recover its state from the WAL on every invocation (crash recovery). The WAL format is newline-delimited JSON objects. Each line is a JSON object with exactly three fields: `"op"` (one of `"set"` or `"del"`), `"key"` (string), and for `"set"` operations,…

Part of ai-and/termgrade-environments.