Expand description
§brainwires-memory
Tiered hot/warm/cold agent memory orchestration.
The schema layer (the five tier stores — MessageStore, SummaryStore,
FactStore, MentalModelStore, TierMetadataStore, plus the shared
tier_types) lives in brainwires_stores. This crate adds:
TieredMemory— multi-factor adaptive search across all four tiers (similarity × recency × importance), plus promotion / demotion of entries when access patterns change.dream— offline consolidation engine that summarises hot-tier messages into warm-tier summaries, extracts cold-tier facts, and demotes by retention score. Feature-gated behinddream.
Re-exports§
pub use tiered_memory::CanonicalWriteToken;pub use tiered_memory::MultiFactorScore;pub use tiered_memory::TieredMemory;pub use tiered_memory::TieredMemoryConfig;pub use tiered_memory::TieredMemoryStats;pub use tiered_memory::TieredSearchResult;
Modules§
- dream
- Offline memory consolidation — the write path for warm/cold tiers.
- tiered_
memory - Tiered Memory Storage System
Structs§
- Fact
Store - Store for cold tier key facts with semantic search
- KeyFact
- Key fact extracted from messages for cold-tier storage.
- Mental
Model - A synthesised mental model stored in the lowest memory tier.
- Mental
Model Store - Persistent storage for the mental-model tier.
- Message
Metadata - Metadata for a message
- Message
Store - Store for managing messages with semantic search
- Message
Summary - Summary of a message for warm-tier storage.
- Summary
Store - Store for warm tier message summaries with semantic search
- Tier
Metadata - Metadata tracking for tiered storage.
- Tier
Metadata Store - Store for tier metadata
Enums§
- Fact
Type - Type of key fact.
- Memory
Authority - Trust level of a memory entry’s origin.
- Memory
Tier - Memory tier classification.
- Model
Type - The kind of pattern a mental model encodes.