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§impl<'de> Deserialize<'de> for SchedulerSecurityConfig
impl<'de> Deserialize<'de> for SchedulerSecurityConfig
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>,
Deserialize this value from the given Serde deserializer. 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