P8-016: Security — strict path hardening in file/git/shell tools #169
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Harden file-tools.ts, git-tools.ts, shell-tools.ts with strict path validation — reject any resolved path outside sandboxDir (path traversal, symlink escapes). Add unit tests for sandbox escape attempts. Prep for future chroot integration (see docs/plans/chroot-sandboxing.md).
Ref: docs/plans/2026-03-15-agent-platform-architecture.md (RBAC & Filesystem Security, Sandbox Escape Prevention)
Wave 2 — independent, runs after P8-007.