HF RL Explorer

Implement a WAL (Write-Ahead Log) key-value store in /app/wal kv store.py with a WALStore class and the…

Implement a WAL (Write-Ahead Log) key-value store in /app/wal kv store.py with a WALStore class and the…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). WAL format requirements: - The WAL is a binary file with records in the format: op code (1 byte) + key len (2…

The task

**WAL format requirements:** - The WAL is a binary file with records in the format: `op_code` (1 byte) + `key_len` (2 bytes, big-endian unsigned) + `key` (UTF-8 bytes) + `value_len` (2 bytes, big-endian unsigned) + `value` (UTF-8 bytes). - `op_code` values: `0x01` for SET, `0x02` for DELETE. - For DELETE records,…

Part of ai-and/termgrade-environments.