Skip to content

feat: request sandbox GPUs with spec.sandboxes.<name>.gpus - #14567

Merged
cv merged 3 commits into
v1from
work/v1/sandbox-gpu-analytics
Nov 19, 2026
Merged

cv merged 3 commits into
v1from
work/v1/sandbox-gpu-analytics

Conversation

@jyaunches

@jyaunches jyaunches commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Configuration authors can request GPUs for sandbox programs with spec.sandboxes.<name>.gpus, so agent tools can run GPU workloads independently of their inference route.

Problem

No sandbox field sends OpenShell's GPU request, so a sandbox gets no GPU. Mounting CUDA libraries into an agent sandbox therefore doesn't give its tools GPU access, and OpenShell refuses driverConfig cdi_devices without a GPU request.

Refs #14648, which records the accepted decision.

Change

  • Accept a positive gpus count and pass it to OpenShell's resource_requirements.gpu.count. OpenShell validates the count, selects devices, and refuses requests the selected driver can't serve.
  • Read the count back from the gateway. Changing or removing it replaces the sandbox through the provider's rule for inputs that can't change in place, because OpenShell can't change a running sandbox's resources.
  • Document pinning specific devices with Docker or Podman driverConfig cdi_devices, which the gateway checks against the count. Kubernetes takes only the count.
  • Remove the ignored authoring journey for sandbox GPU access and host mounts, and the test that rejected an unsupported gateway GPU setting.
  • Regenerate the configuration schema, provider schema fixture, reference, and saved-state format fingerprint.

NemoClaw adds no GPU validation of its own, doesn't compare the count on export (as with driverConfig), and doesn't install CUDA libraries or change Fabric's adapter contract.

Beyond CI

On a DGX Spark, a managed Hermes sandbox requested one GPU and ran cuDF 25.12 and cuOpt 25.12 from a read-only runtime volume. After a network-policy change replaced the sandbox, the runtime and generated skill kept identical fingerprints. Native Hermes resumed the original conversation, and a fresh conversation independently used the saved skill and both libraries. Export and reapply reported no changes. That run used the earlier resources.gpu.count field, which this PR renames to gpus.

The recording image included a separate local Fabric native-credential-routing fix that isn't part of this PR. Requests for several GPUs, cdi_devices pinning, and Kubernetes GPU scheduling weren't exercised on the single-GPU Spark.

@jyaunches

Copy link
Copy Markdown
Contributor Author
Authoring session — opening

Authoring scope: the active fork, including the GPU implementation at d03fb6cd3b; inherited conversation history is excluded from activity counts. Cutoff: 2026-11-18T00:39:40Z.

Field Status Value Evidence or limit
Harness recorded Codex Desktop, CLI 0.166.0-alpha.5.1 Persisted fork metadata; matched GPU task worktree and commit activity.
Skills partial write-tests; nemoclaw-contributor-create-pr; rust-lsp; brev-testing-credential-guidance Complete content matched in recorded tool output. Other guidance reads span older revisions or truncated output: nemoclaw-user-guide, verify-fabric-boundary, verify-yaml-deployment, test-driven-development; not counted as complete.
Instruction files recorded NemoClaw AGENTS.md and WRITING.md; Development and task-worktree AGENTS.md files; Fabric AGENTS.md; PR and session-report templates Complete contents matched in recorded reads. User-supplied global/repository guidance also appears in turn context.
Tool calls partial exec: 590; wait: 27; request_user_input_async: 1 Attempted wrapper/function calls in the active fork, including failures. Nested tool invocations do not have a separate complete ledger; not added to wrapper totals.
Tokens partial input: 81141306; cached input: 79912576; output: 223280 655 unique response-level usage records through cutoff; inherited activity excluded. Cumulative snapshots include inherited history and differ from response accounting; compaction reconciliation is incomplete, so these are known recorded counts.
Session window recorded 2026-11-17T13:26:25Z to 2026-11-18T00:39:40Z; 673 min Entire active fork through cutoff, including idle time, prior demo work, implementation, and recording; not a task-only duration.
Compactions recorded 4 Compacted events in the active fork; inherited compactions excluded.
Models recorded gpt-6-astra All recorded turn contexts through cutoff.
Reasoning levels recorded medium All recorded turn contexts through cutoff.

@github-actions

Copy link
Copy Markdown
Contributor

@cv cv added the v1 NemoClaw v1 branch label Nov 19, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 19, 2026
cv added 2 commits November 19, 2026 02:41
…lytics

# Conflicts:
#	crates/nemoclaw-sdk/src/state/mod.rs
…alidates

Replace spec.sandboxes.<name>.resources.gpu.count with gpus, one count
passed to OpenShell's resource_requirements.gpu.count. OpenShell validates
the count, selects devices, and refuses requests its driver can't serve, so
the provider no longer checks the count itself.

Changing or removing the count replaces the sandbox through the generic
rule for non-mutable inputs; the contract scenario confirmed removal
without resetting omitted values. Export no longer compares the count,
as it doesn't compare driverConfig, which is equally immutable.

The docs show pinning devices with driverConfig cdi_devices. Remove tests
that checked serde, schema, or compiled output, and the ignored journey
for sandbox GPU access and host mounts.

Refs #14648
@cv cv changed the title feat: support explicit sandbox GPU requests feat: request sandbox GPUs with spec.sandboxes.<name>.gpus Nov 19, 2026
@cv
cv enabled auto-merge (squash) November 19, 2026 09:53
@cv
cv merged commit 26bb5d1 into v1 Nov 19, 2026
86 of 87 checks passed
@cv
cv deleted the work/v1/sandbox-gpu-analytics branch November 19, 2026 10:00
cv added a commit that referenced this pull request Nov 20, 2026
#14716)

The v1 release notes record what reached `v0.1.0-rc12` as that release
candidate's own changes and breaking changes, record what reached `v1`
after its tag, and add the managed llama.cpp service to the support
matrix. The release guide lists the `llama-cpp` package that staging
requires.

## Problem

`docs/about/release-notes.md` listed everything after `v0.1.0-rc11` as
unreleased, although `v0.1.0-rc12` is tagged at
1636069. Three user-visible changes in
it had no note: #14567, #14611, and #14594. The onboarding line from
#14598 and #14652 sat under rc11, although both merged after its tag.
The support matrix didn't list managed llama.cpp or its GPU case.

Staging `v0.1.0-rc12` first failed because
`ghcr.io/nvidia/nemoclaw/v1/llama-cpp` didn't exist: #14636 added the
image to staging, but `internal-docs/contributing/releases.md` doesn't
list its package among those a maintainer creates.

## Change

- Relabel "Changes Since v0.1.0-rc11" and "Breaking Changes Since
v0.1.0-rc11" as "Changes in v0.1.0-rc12" and "Breaking Changes in
v0.1.0-rc12", between the `v0.1.0-rc11` and `v0.1.0-rc12` tags, and
point the two links to them.
- Add "Changes Since v0.1.0-rc12" with what merged after the tag: the
Fabric `v0.7.0` pin (#14714), and apply pulling and reading every agent
image before it creates the gateway, with plan and the onboarding review
reporting an absent image (#14701). #14706, #14709, and #14717 change
only documentation. Add an empty "Breaking Changes Since v0.1.0-rc12".
- Add notes to rc12's changes:
- #14567: `spec.sandboxes.<name>.gpus` requests GPUs for an agent's
tools.
- #14611: a `kind: llamaCpp` service serves one pinned GGUF on one CUDA
GPU; `kind: nim` remains a candidate, with #14556's qualification
record.
  - #14594: images keep the license notices their components require.
- Move the line on choosing the one local image that installs the
harness (#14598, #14652) from rc11's section to rc12's.
- Support matrix: llama.cpp and the native NIM candidate in the `docker`
row; Model Services rows for managed llama.cpp, which the
`docker-openclaw-llama-cpp` case runs on the GPU runner, and for native
NIM, qualified by hand; the GPUs text covers llama.cpp and NIM hardware
checks and sandbox `gpus`.
- `internal-docs/contributing/releases.md`: list `llama-cpp` with the
packages a maintainer creates before staging.

Release candidates have no users, so the notes add no migration steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants