Skip to main content

Module semantic_diff

Module semantic_diff 

Source
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§

ContradictionState
Semantic state of one unresolved contradiction in a snapshot.
DoctrineState
Semantic state of one doctrine entry in a snapshot.
KeyLifecycleState
Lifecycle state of one signing key.
MemoryState
Semantic state of one memory entry in a snapshot.
PrincipalTrustState
Trust tier and associated signing keys for one principal.
PrincipleState
Semantic state of one principle in a snapshot.
SalienceDistribution
Bucketed count of memories by salience band.
SalienceScore
Quantized salience score. Store callers can decide the input scale.
SemanticChange
One detected semantic change between current and restored snapshots.
SemanticDiff
Full semantic diff from current state to candidate restored state.
SemanticSnapshot
Meaning-level snapshot captured before or after restore.
TrustKeyState
Combined trust state for principals and signing keys in a snapshot.
TruthCeilingState
Effective truth ceiling for a snapshot, capturing runtime mode, proof state, and per-claim ceilings.

Enums§

ArtifactKind
Category of semantic artifact referenced in a change record.
DoctrineForce
Enforcement strength of a doctrine entry.
KeyState
Lifecycle state of a signing key.
MemoryKind
Category of a memory entry.
ProofState
Proof state captured in a snapshot’s truth ceiling.
RestoreDecision
Decision outcome derived from a semantic diff before permitting a restore.
RuntimeMode
Runtime mode captured in a snapshot’s truth ceiling.
SemanticChangeKind
Specific kind of semantic change detected between snapshots.
SemanticSeverity
Severity level of a semantic change detected during diff.
TrustTier
Trust tier hierarchy for a principal.
TruthCeiling
Maximum claim strength permitted by the snapshot’s proof and runtime context.
TruthState
Active truth state of a semantic artifact.

Functions§

semantic_snapshot_from_store
Extract the current meaning-level snapshot from the SQLite store.