HF RL Explorer

Implement a write-ahead log (WAL) key-value store in Python 3.12 at /app/kv store.py . The store must…

Implement a write-ahead log (WAL) key-value store in Python 3.12 at /app/kv store.py . The store must…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The script reads a sequence of newline-separated JSON commands from stdin. After processing all commands, it…

The task

The script reads a sequence of newline-separated JSON commands from stdin. After processing all commands, it must: 1. Write the committed state to `/app/data/store.json` (a single JSON object mapping string keys to string values). 2. Write the WAL to `/app/data/wal.log` (one JSON object per line, each with `op` and…

Part of ai-and/termgrade-environments.