feat(safety): gate sensitive tools behind elevation and immutable denylist
This commit is contained in:
@@ -593,6 +593,21 @@ hooks:
|
||||
- notify
|
||||
```
|
||||
|
||||
For unrestricted deployments, pair hooks with agent-level sensitive gating:
|
||||
|
||||
```yaml
|
||||
agents:
|
||||
# deny_without_elevation | confirm_without_elevation
|
||||
sensitive_mode: deny_without_elevation
|
||||
immutable_denylist:
|
||||
- tool: shell.exec
|
||||
args_pattern: "git push origin main"
|
||||
reason: "direct main pushes are blocked"
|
||||
- tool: shell.exec
|
||||
args_pattern: "git reset --hard"
|
||||
reason: "destructive hard reset is blocked"
|
||||
```
|
||||
|
||||
## Browser Automation Tools
|
||||
|
||||
Flynn ships these browser tools:
|
||||
|
||||
Reference in New Issue
Block a user