Expand description
Consolidation engine for provider data — hippocampal sleep replay.
Converts provider results into long-term context artifacts:
- BM25/embedding index chunks (for future searches)
- Cross-source graph edges (for related-file discovery)
- Knowledge facts (for semantic memory)
- Session cache entries (for fast re-reads at ~13 tokens)
This is the “sleep replay” mechanism: raw episodic data (provider API responses) is consolidated into durable semantic representations.
Scientific basis: Hippocampal memory consolidation (Kitamura, Science 2017). Fast hippocampal (session cache) traces are replayed to build slow neocortical (knowledge + graph + index) representations.
Structs§
- Cacheable
Provider Result - A provider result ready to be stored in the session cache.
- Consolidation
Artifacts - Pure artifacts produced by consolidation — no side effects yet.
- Consolidation
Result - Result of a consolidation run — tells the caller what was created.
Functions§
- apply_
artifacts - Apply consolidation artifacts to the live systems.
- apply_
artifacts_ with_ pg - consolidate
- Consolidate a batch of ContentChunks into all long-term stores.