Skip to main content

Crate sdivi_snapshot

Crate sdivi_snapshot 

Source
Expand description

Snapshot assembly, delta computation, trend, and boundary inference for sdivi-rust.

Core module for M07/M08. Assembles pipeline stage outputs into a versioned Snapshot JSON (snapshot_version: "1.0") and writes it atomically (tempfile + rename) to .sdivi/snapshots/ (requires pipeline-records feature).

Re-exports§

pub use boundary_inference::infer_boundaries;
pub use boundary_inference::BoundaryInferenceResult;
pub use boundary_inference::PriorPartition;
pub use change_coupling::ChangeCouplingResult;
pub use change_coupling::CoChangePair;
pub use delta::compute_delta;
pub use delta::null_summary;
pub use delta::DivergenceSummary;
pub use snapshot::assemble_snapshot;
pub use snapshot::IntentDivergenceInfo;
pub use snapshot::PatternMetricsResult;
pub use snapshot::Snapshot;
pub use snapshot::SNAPSHOT_VERSION;
pub use trend::compute_trend;
pub use trend::TrendResult;
pub use retention::enforce_retention;
pub use store::write_snapshot;

Modules§

boundary_inference
infer_boundaries — propose community boundaries from partition history.
change_coupling
Change-coupling result types stored in super::snapshot::Snapshot.
delta
DivergenceSummary and compute_delta — pure delta computation.
retention
Synchronous retention enforcement for the snapshot directory.
snapshot
Snapshot — versioned snapshot of pipeline stage outputs.
store
Atomic snapshot file writing — only with pipeline-records feature.
trend
compute_trend — trend analysis over a sequence of snapshots.