Repository navigation
feat(config): pass sandbox driver configuration through - #13402
Merged
Merged
Conversation
A sandbox's driverConfig holds OpenShell's per-driver configuration, such as mounts, and reaches openshell_sandbox's driver_config unchanged.
cv
enabled auto-merge (squash)
October 18, 2026 02:41
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 was referenced Oct 18, 2026
cv
added a commit
that referenced
this pull request
Oct 18, 2026
…#13425) Closes #12639 under its narrowed documentation scope. ## Failure A sandbox can declare `driverConfig`, for example to mount volumes that outlive it (#13304, #13402). The docs on keeping agent files on mounted volumes (#13410) said the gateway must allow driver configuration, but no NemoClaw-managed gateway could. Every gateway NemoClaw installs kept OpenShell's default, `allow_driver_config = false`, and rejected the sandbox. So the mounted-volume path worked only with external gateways, and the docs said that retention through a sandbox replacement had not been qualified. ## Decision - **`spec.gateway.sandboxDriverConfig`:** for managed gateways, with `allow` (default `false`) and an optional `resourceAdmission` (`enabled`, `requiredLabels`), passed through to OpenShell unchanged. - **Docker and Podman:** written into the gateway's `gateway.toml` driver section. The file lives in the gateway's retained storage, so the setting is fixed when the deployment is created, as with the other settings stored there. Without the setting, the file is unchanged byte for byte, so existing gateways still match. - **Kubernetes:** written into the chart's `server.drivers.kubernetes` values, which Helm applies in place. - **How the Docker and Podman resources carry it:** the gateway and gateway-storage resources take it as an optional `sandbox_driver_config` attribute, following the `image_pull_policy` pattern. - **One local check:** an empty `requiredLabels` map is rejected before apply. OpenShell refuses it at gateway start, and on Docker or Podman the value would already be fixed in storage. - **Docs:** - the mounted-volume guide shows the gateway setting next to the sandbox mounts; - retention through replacement is recorded as verified; - references to #12639 are reworded to say who owns each remaining limit: conversation continuity belongs to Fabric and the harness, moving storage belongs to the platform. ## Validation - **New tests** failed before the change: - Docker and Podman `gateway.toml` contents, with and without the setting; - empty `requiredLabels` rejected; - chart values for Kubernetes. - **`cargo ci`** passes locally: 1,597 unit tests and 149 lifecycle tests. The docs check reports 0 errors. - **Live, on a managed Docker gateway:** 1. A deployment with `sandboxDriverConfig.allow: true` mounted two volumes carrying OpenShell's default admission labels. 2. Markers were written into `/sandbox/workspace` and `/sandbox/artifacts`. 3. An agent change replaced the sandbox (`openshell_sandbox` delete/create; new container). 4. Both markers were read back from the new sandbox. 5. Destroy and the documented removal procedure left nothing behind.
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 #13398. Part of #13394.
Failure
openshell_sandboxpasses OpenShell'sdriver_configthrough unchanged (#13304). That's how a sandbox gets mounts, such as a skills volume that outlives the sandbox. The YAML sandbox had no matching field, so mounts were HCL-only.Decision
driverConfigholds OpenShell's per-driver configuration, written as YAML and passed through unchanged. NemoClaw sets nothing in it; OpenShell's defaults and the gateway's driver-configuration setting apply.driver_config_json, likepolicy_json, so it reaches OpenTofu through the same structured-input conversion as the HCL attribute.Validation
unknown fields are not allowed) and passes after. It checks the compiledopenshell_sandboxwith and without the field, and that the document round-trips.cargo cipasses locally: 1543 unit tests and 151 lifecycle tests.docs/agents.mdshows mounting a skills volume in YAML as well as HCL.