Implement a write-ahead log (WAL) key-value store that survives crashes. The store must persist data using a…
Implement a write-ahead log (WAL) key-value store that survives crashes. The store must persist data using a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Your program is a single Python script /app/store.py that: - Accepts exactly one CLI argument: the path to…
The task
Your program is a single Python script `/app/store.py` that: - Accepts exactly one CLI argument: the path to a **data directory** (which already exists). - Uses two files inside that directory: - `wal.log` — append-only write-ahead log - `snapshot.json` — periodic full snapshot
Part of ai-and/termgrade-environments.