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_ statement - 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. - is_
architect_ command_ allowed - Fail-closed read-only policy for architect shell commands.