diff --git a/src/security/policy.rs b/src/security/policy.rs index 14cd4f7..9383f3a 100644 --- a/src/security/policy.rs +++ b/src/security/policy.rs @@ -341,6 +341,7 @@ impl SecurityPolicy { /// - Blocks subshell operators (`` ` ``, `$(`) that hide arbitrary execution /// - Splits on command separators (`|`, `&&`, `||`, `;`, newlines) and /// validates each sub-command against the allowlist + /// - Blocks single `&` background chaining (`&&` remains supported) /// - Blocks output redirections (`>`, `>>`) that could write outside workspace pub fn is_command_allowed(&self, command: &str) -> bool { if self.autonomy == AutonomyLevel::ReadOnly {