Skip to main content

Crate microscope_memory

Crate microscope_memory 

Source
Expand description

Microscope Memory library interface. Re-exports core types and functions for integration tests and external use.

Re-exports§

pub use emotional_state::emotional_prime_weight;
pub use emotional_state::EmotionalStateRing;
pub use reader::append_emotion_log;
pub use reader::build_emotions_from_log;
pub use reader::emotional_similarity;
pub use reader::format_emotion;
pub use reader::load_emotion_lookup;
pub use reader::read_append_log;
pub use reader::store_memory;
pub use reader::store_memory_temporary;
pub use reader::store_memory_with_embedding;
pub use reader::store_memory_with_emotion;
pub use reader::DataStore;
pub use reader::MicroscopeReader;
pub use reader::RadialResult;
pub use reader::ResultSet;
pub use reader::EMOTION_DIMS;
pub use reader::EMOTION_VECTOR_SIZE;
pub use types::AppendEntry;
pub use types::BlockHeader;
pub use types::MemoryBlockHeader;
pub use types::MemoryQueryOptions;
pub use types::ProjectId;
pub use cli::Cli;
pub use cli::Cmd;

Modules§

absentia
Absentia — Csend Réteg / Silence Layer
advanced_cognition
Advanced Cognition — Predictive Processing, Intuition, Unconscious Problem-Solving
ai_adapter
AI Adapter for direct binary communication with Microscope Memory.
archetype
Archetype emergence layer for Microscope Memory.
architecture_generator
Architecture Generator — a memóriában tárolt minták alapján új architektúrák generálása.
architecture_simulator
Architecture Simulator — valós idejű architektúra szimuláció és stressztesztelés.
attention
Attention Mechanism — dynamic weighting of consciousness layers.
auto_context
Auto-Context — assemble a compact, always-fresh session snapshot.
autonomous
Autonomous Mode — Microscope Memory önálló életciklusa
autopoiesis
Autopoiesis — önmódosító kód rendszer
bridge
build
Extracts text from RAW TEXT layer files, constructs a 9-depth block hierarchy (identity → layers → clusters → items → sentences → tokens → syllables → chars → bytes), and writes the binary output files (microscope.bin, data.bin, meta.bin, merkle.bin, embeddings.bin).
cache
Tiered LRU cache for Microscope Memory queries.
chatgpt
ChatGPT Export Importer — Microscope Memory számára
cli
CLI definitions for Microscope Memory.
code_memory
Code Memory — dedikált kódmemória réteg kódoló agentek számára
cognitive_morphogenesis
Kognitív Morfogenezis — Audit-infrastruktúra és integrációs motor.
config
consciousness_seqlock
Lock-free consciousness snapshot, protected by a seqlock protocol.
consciousness_stream
Live Consciousness Stream — folyamatos tudatstream.
curiosity
Proactive Curiosity Module for Microscope Memory.
daydream
Daydreaming — asszociatív drift külső prompt nélkül.
doctor
doctor.rs — Integrity diagnostics and automatic repair for Microscope Memory. (v0.7.0 Public Beta - Reliability Phase)
dream
Dream Consolidation for Microscope Memory.
embedding_index
Embedding index: mmap-backed pre-computed embedding vectors.
embeddings
emotion_extraction
Structural Emotion Extraction — text → PAD state via structural signals.
emotional
Emotional bias warp for Microscope Memory.
emotional_21d
21D Emotional State — wave-based emotional bias for search coordinates.
emotional_contagion
Emotional Contagion for Microscope Memory.
emotional_episode
Emotional Episode — event-bound emotional memory with epistemic backing.
emotional_gate
Emotional Gate — emotion-modulated epistemic gate.
emotional_state
Emotional State Ring — persistent running 21D emotional state.
enforcement
Commitment-enforcement layer - the A_t^valid gate.
epistemic
Evidence Layer (Epistemic Layer) for Microscope Memory.
eureka
Eureka/Insight — váratlan összefüggések detektálása.
executive
Executive — kognitív végrehajtó rendszer
explicit_memory
Explicit memory — declarative knowledge (facts, events, concepts) Facts, events, concepts that can be consciously recalled and reported
federation
Multi-index federation for Microscope Memory.
fingerprint
Structural fingerprinting for Microscope Memory.
functional_plasticity
Functional Neuroplasticity — adaptive reorganization of functional areas Sensorimotor remapping, cross-modal plasticity, functional compensation
hebbian
Hebbian learning layer for Microscope Memory.
heuristic_decision
Heuristic Decision Layer — gyors, heurisztikus döntéshozatal a kognitív modulok integrációjával.
hippocampus
Hippocampus — episodic binding, context binding, and consolidation orchestration Mimics biological hippocampus: indexes new memories, creates context-event bindings, coordinates transfer from short-term (WM) to long-term (cortex-like) storage
hyperfocus
Hyperfocus — concentrated attention on single objective Redirects all system resources to one focus point: planning, problem-solving, creative depth, research
implicit_memory
Implicit memory — procedural & habit learning without conscious recall Skills, patterns, and conditioned responses from repeated exposure
impulse_control
Impulse control system for filtering incoming stimuli and suppressing irrelevant thoughts. Implements a gating mechanism based on attention priority and long-term goals.
inner_monologue
Inner Monologue Module for Microscope Memory.
intent
Intent Pipeline — Auditálható szándék-generálás
keystore
Binary key store — keys.bin
knowledge_base
Knowledge Base — a memóriában tárolt architektúrákból, szimulációs eredményekből és döntési mintákból épített kereshető tudásbázis.
mcp
Native MCP (Model Context Protocol) server for Microscope Memory.
mental_sandbox
Mental sandbox for pre-action scenario simulation. Provides a safe environment to test different action paths before committing.
mental_stimulation
Mental Stimulation — continuous activity requirement to prevent cognitive decay Tracks activity, triggers novelty seeking when dormant, maintains engagement level
merkle
Merkle tree for whole-index integrity verification.
mermaid
Mermaid Terminal — WebSocket + HTML UI for Microscope Memory.
meta_supervision
Meta-cognitive supervision system for continuous performance evaluation and strategy correction. Monitors system behavior and adjusts operational parameters in real-time.
mirror
Mirror neuron layer for Microscope Memory.
morphogenesis
Morphogenesis — Biológiai Mintákon Alapuló Generatív Architektúra-Tenyésztés
multimodal
Multi-Modal Memory for Microscope Memory.
narrative
Belső Narratíva — a rendszer saját magának mesél.
narrative_memory
Narrative Memory Module for Microscope Memory.
neuroplasticity
Neuroplasticity — adaptive reorganization and learning through experience Implements Hebbian learning, structural reorganization, and adaptive pathway strengthening
no_learn
No-learn mode: measure without changing what is being measured.
open_loops
Open Loops — track unresolved tasks / TODOs / open questions.
parallel
Parallel iteration where the target has threads, sequential where it does not.
pattern_recognition
Pattern Recognition — minta felismerő és tanuló rendszer a Microscope Memory számára
pipeline
Canonical memory store pipeline.
planning
Planning — céllebontás és hierarchikus tervezés
predictive_cache
Predictive Cache — pre-fetches blocks based on ThoughtGraph patterns.
query
Microscope Query Language (MQL)
reader
MicroscopeReader — high-performance memory-mapped reader for the binary index.
recall_ctx
Persistent recall context: the reader plus every mutable layer state.
reconsolidation
Rekonszolidáció — minden recall ÁTÍRJA a memóriát.
relevance
Shared lexical-spatial ranking for every natural-language recall surface.
resonance
Resonance protocol for Microscope Memory.
salience
Salience Network — kiemelési hálózat a belső narratíva előtt.
self_model
Self-Model Module for Microscope Memory.
self_reflect
Self-Reflection Module for Microscope Memory.
sequential_thinking
Sequential Thinking — Chain-of-Thought layer for Microscope Memory. This module organizes memory retrievals into logical sequences (Steps).
snapshot
Snapshot: .mscope archive format for backup/restore/diff.
spaced_repetition
Spaced Repetition — Ebbinghaus felejtési görbe management.
spine
The Spine: every layer header of the stream in one shared mmap file.
structural_plasticity
Structural Neuroplasticity — physical network reorganization Dendritic growth, synaptic pruning, neurogenesis (new neuron-like blocks)
synaptic_plasticity
Synaptic Plasticity — Long-term potentiation, long-term depression, spike-timing-dependent plasticity Core mechanisms of learning at synaptic level: activity-dependent weight changes
sync_guard
Poison-safe lock accessors.
temporal_archetype
Temporal Archetypes — time-windowed activation patterns.
text_index
Inverted text index (TIX1) for fast find_text / recall lexical prefilter.
thought_graph
ThoughtGraph — L6: Pattern Recognition for Microscope Memory.
timeline
Timeline — chronological memory log with time-window queries.
types
Shared types used across native and WASM targets.
vagus
Vagus Nerve — Autonomic System Regulation and Cognitive Homeostasis
viz
Visualization export for Microscope Memory.
working_memory
Working Memory — korlátos puffer 7±2 item, gyors decay (30mp), primacy/recency boost, auto-konszolidáció.
zen_keystore
Binary Zen key store — zen_keys.bin

Constants§

APV3_MAGIC
BLOCK_DATA_SIZE
Maximum bytes of text stored in one block.
DEFAULT_CONFIG_PATH
DEPTH_ENTRY_SIZE
HEADER_SIZE
LAYER_NAMES
LEGACY_HEADER_SIZE
META_HEADER_SIZE

Functions§

auto_depth
auto_zoom
content_coords
content_coords_blended
crc16_ccitt
CRC16-CCITT (poly=0x1021, init=0xFFFF) over arbitrary data.
hex_str
layer_to_id
safe_truncate
to_block