pub struct SchedulerSecurityConfig {
pub enabled: bool,
pub injection_pattern_check: bool,
pub attenuate_after_external_read: bool,
}Expand description
RTW-A temporal re-entry defense configuration for the scheduler.
Controls the four RTW-A mechanisms that protect the scheduler tick boundary from prompt-injection attacks originating from the database.
§Example (TOML)
[scheduler.security]
enabled = true
injection_pattern_check = true
attenuate_after_external_read = trueFields§
§enabled: boolEnable all RTW-A re-entry defense mechanisms. Default: true.
injection_pattern_check: boolMechanism 3: scan task_data for injection patterns before forwarding to the LLM.
When enabled, prompts matching known injection markers are blocked and a
SchedulerError::PromptInjectionBlocked is emitted.
Default: true.
attenuate_after_external_read: boolMechanism 4: suppress custom_task_tx prompt injection after an external-read tick.
When enabled, any tick that includes an UpdateCheck (or future network-reading)
handler will not forward custom task prompts to the agent loop for that tick.
Default: true.
Trait Implementations§
Source§impl Clone for SchedulerSecurityConfig
impl Clone for SchedulerSecurityConfig
Source§fn clone(&self) -> SchedulerSecurityConfig
fn clone(&self) -> SchedulerSecurityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedulerSecurityConfig
impl Debug for SchedulerSecurityConfig
Source§impl Default for SchedulerSecurityConfig
impl Default for SchedulerSecurityConfig
Source§fn default() -> SchedulerSecurityConfig
fn default() -> SchedulerSecurityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchedulerSecurityConfig
impl<'de> Deserialize<'de> for SchedulerSecurityConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchedulerSecurityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchedulerSecurityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SchedulerSecurityConfig
impl Serialize for SchedulerSecurityConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SchedulerSecurityConfig
impl RefUnwindSafe for SchedulerSecurityConfig
impl Send for SchedulerSecurityConfig
impl Sync for SchedulerSecurityConfig
impl Unpin for SchedulerSecurityConfig
impl UnsafeUnpin for SchedulerSecurityConfig
impl UnwindSafe for SchedulerSecurityConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request