Skip to main content

Module emotional_state

Module emotional_state 

Source
Expand description

Emotional State Ring — persistent running 21D emotional state.

Automatically tracks the emotional context of stored memories and provides emotional priming for recall — the system’s innate “mood” that biases which memories surface.

Binary format: emotional_state.bin (ESR1)

  • magic: [0x45, 0x53, 0x52, 0x31] = “ESR1” (4 bytes)
  • current_state: [f32; 21] (84 bytes)
  • ring_head: u32 (4 bytes)
  • ring_count: u32 (4 bytes)
  • ring_buffer: [[f32; 21]; 10] (840 bytes)
  • last_update: u64 (8 bytes)
  • total_updates: u64 (8 bytes)

Total: 952 bytes

Structs§

EmotionalStateRing
Persistent running emotional state with ring buffer history.

Functions§

emotional_prime_weight
Get the emotional priming weight for use in recall scoring. Returns 0.0 if the state is inactive (below threshold).