HF RL Explorer

Implement a write-ahead log (WAL) key-value store in a single Python script at /app/store.py . It must…

Implement a write-ahead log (WAL) key-value store in a single Python script at /app/store.py . It must…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Constraints: - All files ( wal.log , db.json ) reside in /app/ . The directory /app/ exists and is writable. -…

The task

**Constraints:** - All files (`wal.log`, `db.json`) reside in `/app/`. The directory `/app/` exists and is writable. - You may use only the Python standard library. No additional pip packages. - The script must handle SIGTERM/SIGINT gracefully by finishing the current atomic operation if possible, but exact signal…

Part of ai-and/termgrade-environments.