This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-core/pkg/tools/file
Levi Neely 2d122c70dd gate file tools with sandbox path checks
file_read, file_write, file_edit, file_grep, and file_glob now check
paths against the sandbox config before operating. Same policy that
landrun enforces on execute_code, applied at the application level.

- Add sandbox.LoadMerged: loads base config + named layer, graceful
  fallback if layer missing. Replaces duplicated logic in execute.
- Add sandbox.CheckPath: resolves symlinks, expands templates, checks
  path against allowed entries (RO/ROX for read, RW/RWX for write).
- file.Server.checkAccess wires the check into every file dispatch.
2026-04-13 18:37:17 +02:00
..
diff.go tools/file: output diff format (context=bare, new=+, changes=unified diff) 2026-04-12 20:39:42 +02:00
edit.go gate file tools with sandbox path checks 2026-04-13 18:37:17 +02:00
glob.go gate file tools with sandbox path checks 2026-04-13 18:37:17 +02:00
grep.go gate file tools with sandbox path checks 2026-04-13 18:37:17 +02:00
read.go gate file tools with sandbox path checks 2026-04-13 18:37:17 +02:00
server.go gate file tools with sandbox path checks 2026-04-13 18:37:17 +02:00
write.go gate file tools with sandbox path checks 2026-04-13 18:37:17 +02:00