Weave documentation
Rust referencestrand-blobs

strand-blobs · repair

Source declarations, signatures and documentation for repair.

Reviewed implementation boundary: The current GC path quarantines records without reclaiming their stored files. Check actual writer/list/report interfaces and partial-write behavior in /libraries/strand-blobs/overview.

Source: sigil/weave/models/strand-blobs/src/repair.rs. SHA-256: 6b890c5e3dcd6787718e2cb1d7b198efd373db34fe5c925faceae3cba465f0a8.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

repair::ChunkCandidate

Candidate chunk for garbage collection

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChunkCandidate {
pub content_hash: [u8; 32],
pub packed_length: u64,
pub index: u64
}

Source line: 7.

repair::GcPlan

GC plan computed by gc_sweep

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GcPlan {
pub candidates: Vec<ChunkCandidate>,
pub total_reclaimable_bytes: u64
}

Source line: 15.

repair::QuarantineMarker

Marker indicating a quarantined chunk (non-destructive)

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct QuarantineMarker {
pub index: u64,
pub content_hash: [u8; 32]
}

Source line: 22.

repair::RepairReport

Minimal repair report schema

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RepairReport {
pub checked_blobs: u64,
pub fixed_manifests: u64,
pub orphaned_chunks: u64,
pub recovered_bytes: u64,
pub errors: Vec<RepairError>
}

Source line: 29.

repair::RepairError

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RepairError {
pub blob_id_hex: String,
pub message: String
}

Source line: 38.

On this page