pub struct SensitivityGateResult {
pub max_memory_sensitivity: String,
pub configured_max: MaxSensitivity,
pub allowed: bool,
}Expand description
Result of a domain-tag sensitivity gate evaluation (ADR 0048 §3).
Produced by the run pipeline after calling
MemoryRepo::max_sensitivity_for_active_memories and comparing against the
configured MaxSensitivity ceiling. The allowed field is the decisive
outcome; the other fields are preserved for audit logging.
Fields§
§max_memory_sensitivity: StringMaximum sensitivity level found across all active memories.
One of "high", "medium", "low", or "none". Sourced directly
from MemoryRepo::max_sensitivity_for_active_memories.
configured_max: MaxSensitivityOperator-configured ceiling from the cortex.toml [llm.claude]
max_sensitivity field.
allowed: booltrue when the active memories’ maximum sensitivity is at or below
the configured ceiling; false when the gate blocks dispatch.
Implementations§
Source§impl SensitivityGateResult
impl SensitivityGateResult
Sourcepub fn evaluate(memory_max_str: &str, configured_max: MaxSensitivity) -> Self
pub fn evaluate(memory_max_str: &str, configured_max: MaxSensitivity) -> Self
Evaluate the domain-tag gate given the memory’s maximum sensitivity
level (as returned by MemoryRepo::max_sensitivity_for_active_memories)
and the operator-configured ceiling.
memory_max_str is one of "high", "medium", "low", or "none".
Any unrecognised string is conservatively treated as "high" so that an
unknown tag value is never silently permitted.
Trait Implementations§
Source§impl Clone for SensitivityGateResult
impl Clone for SensitivityGateResult
Source§fn clone(&self) -> SensitivityGateResult
fn clone(&self) -> SensitivityGateResult
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 SensitivityGateResult
impl Debug for SensitivityGateResult
Source§impl PartialEq for SensitivityGateResult
impl PartialEq for SensitivityGateResult
Source§fn eq(&self, other: &SensitivityGateResult) -> bool
fn eq(&self, other: &SensitivityGateResult) -> bool
self and other values to be equal, and is used by ==.impl Eq for SensitivityGateResult
impl StructuralPartialEq for SensitivityGateResult
Auto Trait Implementations§
impl Freeze for SensitivityGateResult
impl RefUnwindSafe for SensitivityGateResult
impl Send for SensitivityGateResult
impl Sync for SensitivityGateResult
impl Unpin for SensitivityGateResult
impl UnsafeUnpin for SensitivityGateResult
impl UnwindSafe for SensitivityGateResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.