Repository navigation
feat(config): add network grants to the isolated preset - #13405
Merged
Merged
Conversation
network.grants adds named endpoint grants to the isolated preset, joining the sandbox's managed rules with the harness's executables unless binaries are given, so an agent needing one more host keeps the preset.
Contributor
This was referenced Oct 18, 2026
cv
added a commit
that referenced
this pull request
Oct 18, 2026
) Closes #13399. Part of #13394. Stacked on #13405. ## Failure The multi-agent travel team existed only as hand-written HCL (#13393). Expressing it in YAML exposed gaps that #13400, #13401, #13402, #13403 and #13405 closed, but there was no YAML version showing that the team now fits. ## Decision `examples/travel-team.yaml` declares the HCL example's six agents: - **Researchers:** a managed Ollama Nemotron Nano, web search with Hermes's key name (`sandboxEnv`), the `web` toolset, at temperature 0.2. - **Scheduler:** a hosted Nemotron Super at temperature 0.3, with the `delegation` toolset. - **Buyer:** - the hosted model at temperature 0; - the booking service as an `api` integration and an MCP server, with only its toolset; - a network grant limiting the service to setup, discovery, `get_quote` and `book_option`. - **All roles:** isolated sandboxes, Hermes's `custom` provider (reasoning off), and the HCL example's token and turn limits. The YAML has no templating, so instructions are written out per agent and shorter than the HCL's, and they describe each hand-off format instead of embedding the JSON Schemas. The HCL README links the YAML version and says when to use each. ## Validation - A new SDK test compiles the example and checks each sandbox against the HCL example's settings: Fabric model provider, temperature, token and turn limits, toolsets, instructions, attached registrations, and the buyer's tool-restricted grant. - `cargo ci` passes locally: 1552 unit tests and 153 lifecycle tests. - Not run against a live gateway; the HCL version ran on a DGX Spark in #13393.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13404. Part of #13394.
Failure
A YAML sandbox's network was either the
isolatedpreset orpolicy.explicit, OpenShell's complete policy. An agent that needed one more host, or a tool-restricted MCP grant, had to restate the whole policy: filesystem, Landlock and process settings that must match the harness. The HCL travel team example adds such grants on top of OpenShell's defaults, for researcher sources and for the buyer's booking service restricted to two tools, which the YAML couldn't express.Decision
network.grantsholds named grants added to the isolated preset. Each grant takesendpointsin OpenShell's endpoint shape, including MCP method and tool rules, and optionalbinaries.binaries, they take the harness's executables from the launch.network.rsis adapted code; its change list records this.Validation
unknown fields are not allowed) and passes after. It checks that the compiled policy input carries the grant on top of the preset with no executables, that the document round-trips, and that grants plus an explicit policy are rejected.cargo cipasses locally: 1549 unit tests and 153 lifecycle tests.docs/sandbox-network.mddocuments grants.