Synced from monorepo
Synced from monorepo Changes: - Workspace task snapshots only list incomplete backgrounded tasks - Quiet auth, LSP, and config warnings in the shell - Fix observability attributes for warm store errors, restore setup, remote tools, and preview denials - Fail closed when soak metrics are missing - Run plan-mode exit last in mixed tool batches - Allow /loop to store prompts that can terminate the loop - Make subagent maximum nesting depth configurable - Security: apply sandbox profile to the leader process that executes tools Source-Revision: 1adcd1f477870e4a97bacbd6be78c8a3bfbac46d
This commit is contained in:
parent
b41c75a578
commit
02d9359435
96 changed files with 2346 additions and 351 deletions
|
|
@ -67,7 +67,7 @@ grok agent --always-approve serve --bind 127.0.0.1:2419 --secret <token>
|
|||
| `--always-approve` | Run without interactive tool-permission prompts. Alias: `--yolo`. |
|
||||
| `--reauth` | Authenticate before the agent starts. |
|
||||
| `--agent-profile <PATH>` | Load an agent profile from a file. |
|
||||
| `--leader` / `--no-leader` | Connect to a shared leader process, or force a local agent. |
|
||||
| `--leader` / `--no-leader` | Connect to a shared leader process, or force a local agent. When a non-`off` sandbox profile is requested, leader mode is refused so tools stay in-process (see [Sandbox Mode](18-sandbox.md)). |
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,14 @@ The sandbox is applied to the **entire grok process** at startup using kernel pr
|
|||
- `bash` commands, `grep` (rg) -- child processes inherit FS restrictions automatically
|
||||
- Network -- on Linux, child processes can be blocked via seccomp; on macOS this is a no-op
|
||||
|
||||
When a non-`off` sandbox profile is **requested** (CLI, `GROK_SANDBOX`, config, or a managed requirement):
|
||||
|
||||
- The agent runs **in-process**, not through the shared leader, so tool calls stay in this process when the profile is enforced. If leader mode would otherwise have been on, a one-line note at startup says so
|
||||
- If a built-in profile fails to apply, Grok warns and continues without enforcement (see [Platform Support](#platform-support)), but still refuses the leader so tools are not delegated elsewhere
|
||||
- `grok workspace start`, `restart`, and `resume` are unavailable; `pause`, `stop`, and `status` still work
|
||||
|
||||
Disable the profile at the source that selected it to use the refused commands.
|
||||
|
||||
The sandbox is **irreversible** once applied. The agent cannot relax restrictions at runtime.
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Reference in a new issue