#[non_exhaustive]pub enum FunctionalType {
Episodic,
UserFact,
BehavioralRule,
ReasoningStrategy,
CrossSessionSummary,
GraphFact,
}Expand description
MemGuard-inspired functional-role classification of a memory source (spec 004-16, #6086).
Each variant names one of the memory sources composed during context assembly
(schedule_context_fetchers in zeph-context) — not a storage tier
(CompressionLevel) and not a routing backend (MemoryRoute). The two axes are
orthogonal: a zeph_conversations vector is Episodic-tier and the Episodic
functional type, while a Semantic-tier consolidated fact lives under the UserFact
functional type. Placed here (rather than in zeph-memory) because zeph-context — the
crate that gates fetchers by this type — deliberately has no zeph-memory dependency
(see the module doc above and issue #3665); zeph-memory re-exports this type at its
crate root for taxonomy discoverability.
#[non_exhaustive]: additional functional sources may be added later without a breaking
change; an unrecognised variant is always-composed until explicitly gated (never silently
dropped).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Episodic
Raw episodic conversation recall (fetch_semantic_recall → zeph_conversations).
UserFact
User preference/attribute facts (fetch_persona_facts → SQL persona_memory,
not the zeph_key_facts collection — that surface is out of scope, see spec 004-16 §4).
BehavioralRule
Past user corrections (fetch_corrections → zeph_corrections).
Safety-critical: this type is never gated out by type-aware composition — context
assembly always schedules fetch_corrections regardless of the active set.
ReasoningStrategy
Distilled ReasoningBank strategies (fetch_reasoning_strategies → reasoning_strategies).
CrossSessionSummary
Cross-session summaries (fetch_summaries / fetch_cross_session → zeph_session_summaries).
GraphFact
Knowledge graph facts (fetch_graph_facts → zeph_graph_entities).
Implementations§
Trait Implementations§
Source§impl Clone for FunctionalType
impl Clone for FunctionalType
Source§fn clone(&self) -> FunctionalType
fn clone(&self) -> FunctionalType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more