diff --git a/book/src/security/automation-security.md b/book/src/security/automation-security.md index 462f232c70..b7b7147443 100644 --- a/book/src/security/automation-security.md +++ b/book/src/security/automation-security.md @@ -44,9 +44,12 @@ Automation is a privilege boundary because requests can cause filesystem access, writes back only to the document's own PSD, PSB or `.pcraft` file in its own format; any other save needs an explicit `path`, so automation never flattens or converts over the file it opened. - Automation paths may be relative or absolute beneath the canonical or configured spelling of - the applicable granted root. Absolute paths are translated to relative paths and resolved through - the held directory capability. Outside-root absolute paths, parent traversal, malformed relative - components and link escapes are rejected before file effects. + the applicable granted root. Absolute paths outside that root are rejected. Accepted absolute + paths are translated to relative paths and resolved through the held directory capability. + Relative requests reject empty or `.` components and alternate separators. Absolute requests + are split into native path components before checking the root-relative remainder, so repeated + separators and interior `.` components are normalized. Both forms reject parent traversal in + the remainder, disallowed component names and link escapes before file effects. - Engine commands that still use ambient paths fail closed at the automation boundary. Synthetic UI input reaches the same command policy, and automation-triggered file hooks do not run user-configured script-event paths. The policy also covers every command a command runs on its