Expand description
Layered memory system (L0-L4).
Provides FileMemoryStore as the default file-backed implementation.
The MemoryStore trait, MemoryError, MemoryLevel, and
NullMemoryStore are defined in roma-core and re-exported here
for backward compatibility.
Structs§
- File
Memory Store - File-backed memory store with per-level validators.
- L1Max
Lines - L1 validator: enforce a maximum line count.
- L2Section
Guard - L2 validator: enforce required markdown sections exist.
- Null
Forgetter - A no-op forgetter that never consolidates. Useful as a default.
- Null
Memory Store - No-op implementation used in tests that don’t need real persistence.
- Simple
Forgetter - Simple forgetter that merges the oldest L3 files when the count exceeds
the threshold. Files are concatenated into a single
_consolidated_<n>.mdand the originals are deleted.
Enums§
- Memory
Error - Memory store errors.
- Memory
Level - Memory level.
- Patch
Error - Uniqueness-checked patch errors.
Traits§
- Forgetter
- Strategy for pruning/consolidating long-term memory when it grows too large.
- Memory
Store - Pluggable memory backend.
- Memory
Validator - Structural validator for a memory level.