Skip to main content

Module narrative_memory

Module narrative_memory 

Source
Expand description

Narrative Memory Module for Microscope Memory.

Automatically links sequences of recalls into coherent narratives - story arcs that emerge from thought patterns and can be replayed as structured episodes.

Binary format: NVM1 magic: “NVM1” (4 bytes) timestamp_ms: u64 (8 bytes) episode_id: u32 (4 bytes) title_len: u16 (2 bytes) + title bytes summary_len: u16 (2 bytes) + summary bytes block_count: u16 (2 bytes) + block_indices (u32 each) emotional_arc: [f32; 21] (84 bytes)

Structs§

NarrativeEpisode
NarrativeMemory

Statics§

LAST_RESCANS
Byte-at-a-time steps in the last load that took any. Zero means that load parsed cleanly; it does not mean the counter was never armed.
RESYNC_STEPS
Byte-at-a-time resynchronisation steps taken by NarrativeMemory::load_or_init across the process, and the count from the most recent load that took any.

Functions§

format_episode