pub struct TypeAwareComposeConfig {
pub enabled: bool,
pub default_compose_types: Vec<FunctionalType>,
pub intent_scoped: bool,
}Expand description
MemGuard-inspired type-aware memory retrieval composition (spec 004-16, issue #6086).
Retrieval-only, fetch-time gate: it does not touch write paths, does not add a new
Qdrant collection, and does not migrate stored data. When enabled = false (the default),
schedule_context_fetchers in zeph-context composes exactly the same memory sources it
does today — the empty active-type set produced by enabled = false is treated identically
to an empty default_compose_types, both meaning “all types” (byte-for-byte no-op).
BehavioralRule (past-correction) recall is deliberately excluded from gating: it is
safety-critical and is always composed regardless of this config.
§Example (TOML)
[memory.type_aware_compose]
enabled = false
default_compose_types = []
intent_scoped = falseFields§
§enabled: boolMaster switch. When false (default), context assembly composes all memory types
exactly as today. When true, only the types in the active set (default_compose_types
plus, when intent_scoped, the classified-intent widening) are composed.
default_compose_types: Vec<FunctionalType>Functional types composed under an un-specialized retrieval need.
Empty (default) means all types — the same composition as today. Strict parse: an unknown/typo’d type string is a hard config-load error, never a silent fallback to “all types” (spec 004-16 §4, critic finding S4).
intent_scoped: boolWhen true, additionally widen the active set per classified query intent using the
static IntentClass -> FunctionalType[] table (reuses the existing heuristic memory
router; adds no new LLM call). Default: false.
Trait Implementations§
Source§impl Clone for TypeAwareComposeConfig
impl Clone for TypeAwareComposeConfig
Source§fn clone(&self) -> TypeAwareComposeConfig
fn clone(&self) -> TypeAwareComposeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more