HF RL Explorer

Implement a WAL-based key-value store that supports PUT, GET, DELETE, and SHUTDOWN operations, with crash…

Implement a WAL-based key-value store that supports PUT, GET, DELETE, and SHUTDOWN operations, with crash…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The store operates on stdin/stdout as a text protocol. Each line is a JSON object with a "cmd" field…

The task

The store operates on stdin/stdout as a text protocol. Each line is a JSON object with a "cmd" field. Commands are processed sequentially. The store MUST be durable: after a SHUTDOWN command, a subsequent run of the same program on the same data directory MUST restore all committed state.

Part of ai-and/termgrade-environments.