storage-sync

Synchronize Turso durable storage with redb cache via batched transactional writes.

11|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill storage-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storage-sync
Source: https://github.com/d-o-hub/rust-self-learning-memory/tree/main/.claude/skills/storage-sync
Command: npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill storage-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures consistency between durable Turso storage and hot redb cache by reconciling episodes, patterns, and embeddings, enabling reliable memory synchronization.

Core Features & Use Cases

  • Source of truth policy: Turso (durable) as authoritative; redb rebuilt from Turso.
  • Incremental sync: batch fetches and parallel writes to minimize downtime.
  • Validation & monitoring: integrity checks and metrics after sync.

Quick Start

Trigger a memory synchronization cycle and observe metrics to confirm data consistency across layers.

Frequently Asked Questions about storage-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep Turso and redb storage in sync automatically?

Synchronize Turso and redb by triggering a sync cycle that rebuilds redb from Turso as the source of truth, performing batched fetches and parallel writes to reconcile episodes, patterns, and embeddings while minimizing downtime.

When should I synchronize Turso and redb cache?

Trigger sync during startup, periodic maintenance, cache staleness detection, failure recovery, or manual reconciliation to ensure data consistency between durable Turso storage and hot redb cache.

How does the sync handle Turso unavailability and cache corruption?

The sync implements error handling for Turso unavailability and cache corruption, performs post-sync integrity validation, and uses Tokio for concurrent operations to maintain consistency across distributed storage layers.

Can I sync episodes, patterns, and embeddings across Turso and redb?

Yes, the sync reconciles episodes, patterns, and embeddings between Turso and redb using batched and transactional writes, with Turso as the authoritative source and redb rebuilt to match.

What happens after synchronization completes?

After sync completes, the Skill validates post-sync integrity through checks and metrics to confirm data consistency across both storage layers and ensure reliable memory synchronization.