Skip to main content

sdivi_snapshot/
lib.rs

1//! Snapshot assembly, delta computation, trend, and boundary inference for sdivi-rust.
2//!
3//! Core module for M07/M08. Assembles pipeline stage outputs into a versioned
4//! `Snapshot` JSON (`snapshot_version: "1.0"`) and writes it atomically
5//! (tempfile + rename) to `.sdivi/snapshots/` (requires `pipeline-records` feature).
6
7pub mod boundary_inference;
8pub mod change_coupling;
9pub mod delta;
10pub mod retention;
11pub mod snapshot;
12pub mod store;
13pub mod trend;
14
15pub use boundary_inference::{infer_boundaries, BoundaryInferenceResult, PriorPartition};
16pub use change_coupling::{ChangeCouplingResult, CoChangePair};
17pub use delta::{compute_delta, null_summary, DivergenceSummary};
18pub use snapshot::{
19    assemble_snapshot, IntentDivergenceInfo, PatternMetricsResult, Snapshot, SNAPSHOT_VERSION,
20};
21pub use trend::{compute_trend, TrendResult};
22
23#[cfg(feature = "pipeline-records")]
24pub use retention::enforce_retention;
25#[cfg(feature = "pipeline-records")]
26pub use store::write_snapshot;