Expand description
Path jail: keep agent-facing paths inside a source root.
Absolute paths, .. traversal, and symlink hops that leave the root are rejected.
Functionsยง
- absolute_
root ๐ - normalize_
lexically ๐ - resolve_
existing_ ๐prefix - Canonicalize the longest existing prefix so symlink hops are visible.
- resolve_
under_ root - Resolve
pathso the result is insideroot.