docs: align automation security with native path normalization

This commit is contained in:
Mex authored and GitHub committed 2026-11-14 19:35:33 +01:00
1 parent 414febdf10
commit fac4e45079
1 file changed
+6 -3
+6 -3
View File
@@ -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