Skip to main content

reconcile

Function reconcile 

Source
pub async fn reconcile<T: RagTransport>(
    vault: &NoteVault,
    transport: &T,
) -> Result<bool, RagError>
Expand description

Reconciles the server with the vault: diff hash sets, then push/delete only the differences. Self-healing — repairs anything the drain path missed.

Returns false (doing nothing) when the local index is not ready: a healed/rebuilding index reads as an empty vault, and diffing against that snapshot would put every server doc in to_delete — wiping the collection. Callers should retry once the index is filled.