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
//! `LawGraphSnapshot` — a portable, serialisable bundle of RDF triples that can be
//! loaded into any `SemanticLawGraph` implementation.
//!
//! The snapshot format is intentionally simple (N-Quads text) so it can be
//! generated offline, stored in a receipt, and replayed deterministically.
/// A BLAKE3 hex digest binding a snapshot to its content.
pub type GraphDigest = String;
/// A portable snapshot of the semantic law graph, encoded as N-Quads text.
///
/// Snapshots are the unit of admission for the semantic layer:
///
/// ```text
/// snapshot loaded → GraphDigest returned
/// → digest matches receipt → ADMITTED
/// → digest mismatch → STOP
/// ```