1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Drift detection between the SQLite index and `.md` files on disk.
//!
//! Delegates to `gradatum-index::drift::scan_phase_a`.
//!
//! ## Phase-A scan
//!
//! - Verifies `file_checksums` entries: size + 4 KB prefix, then full SHA-256.
//! - Returns a `DriftScanResult` with counters and the list of missing files.
//!
//! ## Untracked-file detection (phase B)
//!
//! Filesystem walk for `.md` files absent from `file_checksums`, plus reconstruction
//! (re-parse + re-index + `AuditEvent::DriftFixed`) are deferred.
use GradatumError;
use ;
use crateVault;