pub struct ContentIsolationConfig {
pub enabled: bool,
pub max_content_size: usize,
pub flag_injection_patterns: bool,
pub spotlight_untrusted: bool,
pub quarantine: QuarantineConfig,
pub embedding_guard: EmbeddingGuardConfig,
pub mcp_to_acp_boundary: bool,
}Expand description
Configuration for the content isolation pipeline, nested under
[security.content_isolation] in the agent config file.
Fields§
§enabled: boolWhen false, the sanitizer is a no-op: content passes through unchanged.
max_content_size: usizeMaximum byte length of untrusted content before truncation.
flag_injection_patterns: boolWhen true, injection patterns detected in content are recorded as
flags and a warning is prepended to the spotlighting wrapper.
spotlight_untrusted: boolWhen true, untrusted content is wrapped in spotlighting XML delimiters
that instruct the LLM to treat the enclosed text as data, not instructions.
quarantine: QuarantineConfigQuarantine summarizer configuration.
embedding_guard: EmbeddingGuardConfigEmbedding anomaly guard configuration.
mcp_to_acp_boundary: boolWhen true, MCP tool results flowing through ACP-serving sessions receive
unconditional quarantine summarization and cross-boundary audit log entries.
This prevents confused-deputy attacks where untrusted MCP output influences
responses served to ACP clients (e.g. IDE integrations).
Trait Implementations§
Source§impl Clone for ContentIsolationConfig
impl Clone for ContentIsolationConfig
Source§fn clone(&self) -> ContentIsolationConfig
fn clone(&self) -> ContentIsolationConfig
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 ContentIsolationConfig
impl Debug for ContentIsolationConfig
Source§impl Default for ContentIsolationConfig
impl Default for ContentIsolationConfig
Source§impl<'de> Deserialize<'de> for ContentIsolationConfig
impl<'de> Deserialize<'de> for ContentIsolationConfig
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>,
Source§impl PartialEq for ContentIsolationConfig
impl PartialEq for ContentIsolationConfig
Source§fn eq(&self, other: &ContentIsolationConfig) -> bool
fn eq(&self, other: &ContentIsolationConfig) -> bool
self and other values to be equal, and is used by ==.