Confine agent file tools to explicit roots #49
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/zara!49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/zara-013-file-tool-sandbox"
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?
What changed
tools.file_tools = falseWhy
The previous tools accepted arbitrary absolute and relative paths without containment checks, allowing traversal and symlink aliases to read, overwrite, diff, or list files outside the repository.
Impact
File tools are absent from the agent unless explicitly enabled. When enabled, legitimate in-root operations continue to work while outside sentinels, traversal aliases, symlinks, and special files are rejected without exposing outside paths.
Validation
nix develop -c scripts/test-file-tools.sh— 24 passednix develop -c bash -c 'pytest && for test_script in scripts/test-*.sh; do bash "$test_script"; done'— 87 Python tests plus every integration script passednix buildCloses #14