Skip to main content

Module manager

Module manager 

Source
Expand description

Context lifecycle state machine for the Zeph agent.

ContextManager tracks per-session compaction state and token budgets. It decides when soft (pruning) or hard (LLM summarization) compaction should fire, and builds the memory router used for query-aware store selection.

CompactionState is the core state machine — see its doc comment for the full transition map.

Structs§

ContextManager
Per-session context lifecycle manager.

Enums§

CompactionState
Lifecycle state of the compaction subsystem within a single session.
CompactionTier
Indicates which compaction tier applies for the current context size.