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 · 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§fn default() -> ContentIsolationConfig
fn default() -> ContentIsolationConfig
Source§impl<'de> Deserialize<'de> for ContentIsolationConfig
impl<'de> Deserialize<'de> for ContentIsolationConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentIsolationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentIsolationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ContentIsolationConfig
impl PartialEq for ContentIsolationConfig
Source§impl Serialize for ContentIsolationConfig
impl Serialize for ContentIsolationConfig
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,
impl StructuralPartialEq for ContentIsolationConfig
Auto Trait Implementations§
impl Freeze for ContentIsolationConfig
impl RefUnwindSafe for ContentIsolationConfig
impl Send for ContentIsolationConfig
impl Sync for ContentIsolationConfig
impl Unpin for ContentIsolationConfig
impl UnsafeUnpin for ContentIsolationConfig
impl UnwindSafe for ContentIsolationConfig
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<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 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>
T in a tonic::Request