- Add per-task write lock in TaskStore to prevent concurrent write corruption - Implement defensive JSON parsing with recovery for task.json files - Use atomic writes (write-to-temp + rename) for task.json updates - Add vitest config and tests for lock, parsing, and atomic write behavior - Remove concurrency module from engine, consolidating store safety in core