Constants§
- ARCHITECT_
COMMANDS - Commands exposed by architect mode. This deliberately omits general-purpose
interpreters and utilities with write/exec primitives (
sed,awk,find,tee, …). Bash restricted mode is only defense in depth: it does not make ordinary commands such astouchorrmread-only. - SHELL_
SPAWNING_ COMMANDS - Commands that can execute arbitrary code passed as a string argument.
Functions§
- architect_
allowed_ commands - assert_
single_ powershell_ statement - Reject PowerShell input that chains statements:
;, newlines, or the&&/||chain operators outside quotes. A single pipeline is allowed. - assert_
single_ statement - assert_
single_ statement_ for - Validate that
commandis a single top-level bash statement. - detect_
allowlist_ bypass - Return the deduplicated allowlist entries that make a
code_writerallowlist bypassable (seeSHELL_SPAWNING_COMMANDS). - extract_
command_ texts - Collect the full text of every
commandnode in the script. - extract_
static_ write_ paths - Return statically visible filesystem destinations written by a shell command.
- is_
architect_ command_ allowed - Fail-closed read-only policy for architect shell commands.