Expand description
§Persistence Layer
Handles backend traits, repository interfaces, query limits, and storage errors.
This is the persistence stage of the memory pipeline:
Episode → [pre_storage: ingest] → [storage: persistence] → Backend
Responsibilities: backend trait definitions, repository interfaces, query construction, error types, and circuit breaker patterns.
Modules§
- circuit_
breaker - Circuit Breaker Pattern for Storage Resilience
Constants§
- DEFAULT_
QUERY_ LIMIT - Default limit for query operations (when not specified)
- MAX_
QUERY_ LIMIT - Maximum limit for query operations (prevents OOM)
Traits§
- Storage
Backend - Unified storage backend trait
Functions§
- apply_
query_ limit - Apply limit with defaults and bounds checking.