Pavith
Pavith
#4115 implements this: an experimental `[sandbox]` config section with `workspace-write` (default when enabled) / `read-only` / `danger-full-access` modes — commands spawned via the Bash tool run inside macOS Seatbelt or...
A deterministic alternative to a classifier is implemented in #4115: an experimental exec-policy engine evaluates each parsed command segment against `prefix_rule` allow/prompt/forbidden entries (plus a sandbox that bounds what approved...
This gap (glob-matching the raw command string, no sub-command decomposition) is addressed by the exec-policy layer in #4115: commands are parsed with the existing tree-sitter bash AST, split into per-executable...
The false-positive/false-negative table here is exactly the failure mode addressed natively (not via hooks) in #4115: the exec-policy layer evaluates the parsed AST per command segment rather than the command...
A working implementation of all three layers exists in #4115 (submitted alongside this issue) — macOS Seatbelt + Linux bwrap sandboxing behind `KIMI_CODE_EXPERIMENTAL_SANDBOX`, a layered `.rules` exec-policy engine (`prefix_rule`/`network_rule`, AST-based...