void writeVersioned(KvStore kv, String key, Map<String, Object?> value) { kv.set(key, jsonEncode({...value, 'v': kvFormatVersion})); }