Expand description
Self-contained semantic backup/restore diff scaffolding.
This module intentionally has no repository or CLI wiring. Parent tasks can export it and feed snapshots from SQLite/JSONL after the restore command owns the structural backup verification path.
Structs§
- Contradiction
State - Semantic state of one unresolved contradiction in a snapshot.
- Doctrine
State - Semantic state of one doctrine entry in a snapshot.
- KeyLifecycle
State - Lifecycle state of one signing key.
- Memory
State - Semantic state of one memory entry in a snapshot.
- Principal
Trust State - Trust tier and associated signing keys for one principal.
- Principle
State - Semantic state of one principle in a snapshot.
- Salience
Distribution - Bucketed count of memories by salience band.
- Salience
Score - Quantized salience score. Store callers can decide the input scale.
- Semantic
Change - One detected semantic change between current and restored snapshots.
- Semantic
Diff - Full semantic diff from current state to candidate restored state.
- Semantic
Snapshot - Meaning-level snapshot captured before or after restore.
- Trust
KeyState - Combined trust state for principals and signing keys in a snapshot.
- Truth
Ceiling State - Effective truth ceiling for a snapshot, capturing runtime mode, proof state, and per-claim ceilings.
Enums§
- Artifact
Kind - Category of semantic artifact referenced in a change record.
- Doctrine
Force - Enforcement strength of a doctrine entry.
- KeyState
- Lifecycle state of a signing key.
- Memory
Kind - Category of a memory entry.
- Proof
State - Proof state captured in a snapshot’s truth ceiling.
- Restore
Decision - Decision outcome derived from a semantic diff before permitting a restore.
- Runtime
Mode - Runtime mode captured in a snapshot’s truth ceiling.
- Semantic
Change Kind - Specific kind of semantic change detected between snapshots.
- Semantic
Severity - Severity level of a semantic change detected during diff.
- Trust
Tier - Trust tier hierarchy for a principal.
- Truth
Ceiling - Maximum claim strength permitted by the snapshot’s proof and runtime context.
- Truth
State - Active truth state of a semantic artifact.
Functions§
- semantic_
snapshot_ from_ store - Extract the current meaning-level snapshot from the SQLite store.