Skip to content

feat(config): pass sandbox driver configuration through - #13402

Merged
cv merged 1 commit into
v1from
feat/yaml-driver-config
Oct 18, 2026
Merged

cv merged 1 commit into
v1from
feat/yaml-driver-config

Conversation

@cv

@cv cv commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Closes #13398. Part of #13394.

Failure

openshell_sandbox passes OpenShell's driver_config through 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

  • A sandbox's driverConfig holds 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.
  • The SDK carries it in the sandbox row's driver_config_json, like policy_json, so it reaches OpenTofu through the same structured-input conversion as the HCL attribute.

Validation

  • A new SDK test failed before the change (unknown fields are not allowed) and passes after. It checks the compiled openshell_sandbox with and without the field, and that the document round-trips.
  • cargo ci passes locally: 1543 unit tests and 151 lifecycle tests.
  • The schema and the configuration reference are regenerated. docs/agents.md shows mounting a skills volume in YAML as well as HCL.

A sandbox's driverConfig holds OpenShell's per-driver configuration, such as
mounts, and reaches openshell_sandbox's driver_config unchanged.
@cv
cv enabled auto-merge (squash) October 18, 2026 02:41
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 91f1a8d into v1 Oct 18, 2026
@cv
cv deleted the feat/yaml-driver-config branch October 18, 2026 02:56
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.
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.
@wscurran wscurran added area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality labels Oct 23, 2026
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants