Skip to main content

Module memory

Module memory 

Source
Expand description

Memory type — a single memory entry stored in LMDB.

Structs§

Memory
A complete memory entry: metadata + content.
MemoryMetadata
Metadata for a memory entry.

Enums§

MemoryType
Classification of memory kind, inspired by cognitive science memory systems.
Tier
Lifecycle tier (V8 S5, MEMORY_TYPOLOGY_V8.md §6) — how a memory is served as it ages.

Functions§

content_hash
Compute SHA-256 content hash, returned as hex string.
corroboration_boost
Corroboration ranking boost — monotone, bounded, saturating.
corroboration_weight
Corroboration knob (bridging consensus counter, Lucas ruling 2026-09-04).
decode_embedding
Decode raw bytes back into an f32 embedding vector.
encode_embedding
Encode an f32 embedding vector as raw bytes for LMDB storage.
trust_weighted_score
Retrieval trust factor (V8.1, evidence-gated via WM_TRUST_WEIGHT).
validity_enforced
Validity enforcement knob (V8 Slice B, D1+D2).

Type Aliases§

MemoryId
Unique identifier for a memory.