Skip to main content

is_architect_command_allowed

Function is_architect_command_allowed 

Source
pub fn is_architect_command_allowed(command_line: &str) -> bool
Expand description

Fail-closed read-only policy for architect shell commands.

The normal allowlist checks every nested command, but a few nominally read-only programs have options that execute helpers or write files. Validate those options here as well so rg --pre, git diff --ext-diff, and git show --output=... cannot turn the architect shell into a mutation path.