pub struct SecurityConfig {Show 15 fields
pub redact_secrets: bool,
pub autonomy_level: AutonomyLevel,
pub content_isolation: ContentIsolationConfig,
pub exfiltration_guard: ExfiltrationGuardConfig,
pub memory_validation: MemoryWriteValidationConfig,
pub pii_filter: PiiFilterConfig,
pub rate_limit: RateLimitConfig,
pub pre_execution_verify: PreExecutionVerifierConfig,
pub guardrail: GuardrailConfig,
pub response_verification: ResponseVerificationConfig,
pub causal_ipi: CausalIpiConfig,
pub vigil: VigilConfig,
pub trajectory: TrajectorySentinelConfig,
pub capability_scopes: CapabilityScopesConfig,
pub shadow_sentinel: ShadowSentinelConfig,
}Expand description
Agent security configuration, nested under [security] in TOML.
Aggregates all security-related subsystems: content isolation, exfiltration guards, memory write validation, PII filtering, rate limiting, prompt injection screening, and response verification.
§Example (TOML)
[security]
redact_secrets = true
autonomy_level = "moderate"
[security.rate_limit]
enabled = true
shell_calls_per_minute = 20Fields§
§redact_secrets: boolAutomatically redact detected secrets from tool outputs before they reach the LLM.
Default: true.
autonomy_level: AutonomyLevelAutonomy level controlling which tool actions require explicit user confirmation.
content_isolation: ContentIsolationConfig§exfiltration_guard: ExfiltrationGuardConfig§memory_validation: MemoryWriteValidationConfigMemory write validation (enabled by default).
pii_filter: PiiFilterConfigPII filter for tool outputs and debug dumps (opt-in, disabled by default).
rate_limit: RateLimitConfigTool action rate limiter (opt-in, disabled by default).
pre_execution_verify: PreExecutionVerifierConfigPre-execution verifiers (enabled by default).
guardrail: GuardrailConfigLLM-based prompt injection pre-screener (opt-in, disabled by default).
response_verification: ResponseVerificationConfigPost-LLM response verification layer (enabled by default).
causal_ipi: CausalIpiConfigTemporal causal IPI analysis at tool-return boundaries (opt-in, disabled by default).
vigil: VigilConfigVIGIL verify-before-commit intent anchoring gate (enabled by default).
Runs a regex tripwire before sanitize_tool_output to intercept low-effort injection
patterns. See [[security.vigil]] in TOML and spec 010-6-vigil-intent-anchoring.
trajectory: TrajectorySentinelConfigTrajectory risk sentinel configuration.
Controls signal decay, risk level thresholds, auto-recovery, and subagent inheritance.
See spec 050 and crates/zeph-core/src/agent/trajectory.rs.
capability_scopes: CapabilityScopesConfigCapability scope configuration.
Maps task-type names to glob-pattern allow-lists over fully-qualified tool ids. When empty, scoping is a no-op (full tool set surfaced to LLM).
shadow_sentinel: ShadowSentinelConfigShadowSentinel Phase 2: persistent safety event stream + LLM pre-execution probe.
Disabled by default. When enabled, high-risk tool calls are probed by an LLM
before execution. ShadowSentinel is defence-in-depth only — PolicyGateExecutor
and TrajectorySentinel remain the primary enforcement mechanisms.
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more