pub struct AdmissionPolicy {
pub enabled: bool,
pub auto_merge_similarity: f32,
pub min_salience: u32,
}Expand description
Write-time admission control for the knowledge store (#970). The cap +
importance-eviction is a backstop after the fact is written; admission is
the boundary before it, so a capped store fills with signal, not noise.
Applied only to direct ctx_knowledge remember (the agent-facing path);
internal restorers (archive rehydrate, cognition auto-promotion) bypass it.
Fields§
§enabled: boolMaster switch for write-time admission. When off, every remember
inserts as before (legacy behavior).
auto_merge_similarity: f32A new fact whose value is at least this similar (word-Jaccard, 0.0–1.0) to
an existing current fact in the same category under a different key
is merged into it (a confirmation bump) instead of inserted as a new row.
High by default so only genuine near-duplicates collapse; 0.0 disables
auto-merge.
min_salience: u32Facts whose content salience (crate::core::memory_salience::text_salience)
is below this floor are not admitted as normal facts. 0 (default)
disables the floor — the lossless choice; raise it to curate a noisy store.
Trait Implementations§
Source§impl Clone for AdmissionPolicy
impl Clone for AdmissionPolicy
Source§fn clone(&self) -> AdmissionPolicy
fn clone(&self) -> AdmissionPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdmissionPolicy
impl Debug for AdmissionPolicy
Source§impl Default for AdmissionPolicy
impl Default for AdmissionPolicy
Source§impl<'de> Deserialize<'de> for AdmissionPolicywhere
AdmissionPolicy: Default,
impl<'de> Deserialize<'de> for AdmissionPolicywhere
AdmissionPolicy: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AdmissionPolicy
impl RefUnwindSafe for AdmissionPolicy
impl Send for AdmissionPolicy
impl Sync for AdmissionPolicy
impl Unpin for AdmissionPolicy
impl UnsafeUnpin for AdmissionPolicy
impl UnwindSafe for AdmissionPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more