Repository navigation
fix(sdk): require image.ref on every runtime - #14564
Conversation
A sandbox now has to name its agent image on every runtime, as it already did on Kubernetes and OpenShift. The SDK no longer falls back to a default agent image that exists only on the host that built it. ## Problem On Docker and Podman, a sandbox that omitted `image.ref` got the digest pinned in `versions.json`, `nc-fabric-owner-20260924@sha256:c4c0d3add...`. No registry holds that image, so it resolved only on the machine that built it. Every example that left the image out depended on it. Resolves #14551. #13516 tracks publishing agent images, and #14235 tracks the onboarding suggestion that depended on the default. ## Change - `image.ref` is required for every sandbox. A missing `image`, an empty `image: {}` and an empty `ref` are all rejected, and the error links to the agent image build instructions. - `images.agent` is gone from `versions.json`, along with the SDK's `DEFAULT_AGENT_IMAGE` constant and the code that filled it in. - The Kubernetes rule now requires only `image.metadata`, since `image.ref` is required everywhere. - Examples, the live cases, the SDK fixture and the provider contract fixtures that omitted the image, or carried the old digest, use a placeholder digest. The schema and configuration reference are regenerated, and the docs no longer describe a default image. - Onboarding asks for the image reference without a suggestion until a published image exists (#14235). Signed-off-by: Deepak Jain <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Authoring session — opening
|
The integration scenarios `docker-openclaw-ollama`, `docker-ollama-proxy` and `docker-hosted-ollama-two-agents` name the inference resources they assert on with a hash that depends on the sandbox's image. The change that requires `image.ref` gave those cases an explicit placeholder image, which changed the hash, so each scenario referenced an `openshell_inference` resource that no longer exists and failed in its `verify` run. The scenarios now use the names the SDK compiles for the new image: `local-d6ca74ad95e4f1d5f302f50e` for the two single-agent cases, and `local-a21c64a088f98c60f915f82e` and `nvidia-7b10beb441f87130e1c5dc67` for the two-agent case. `local-d6ca74ad95e4f1d5f302f50e` is also the name in the regenerated `local` contract fixture. Signed-off-by: Deepak Jain <[email protected]>
|
@coderabbitai review |
Action performed
|
|
No actionable comments were generated in the recent review. WalkthroughEvery sandbox now requires an explicit SHA-256-pinned image reference. The SDK no longer provides a default agent image. Validation, onboarding tests, examples, documentation, and provider and end-to-end fixtures have been updated. ChangesRequired sandbox image contract
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Possibly related issues
Merge Risk:
|
|
I used the real Rust SDK to load the same Docker and Podman YAML files on both revisions, with the Docker image omitted and the Podman image reference empty. I also built the docs through the repository's Fern workflow and opened the changed image build guide. Before (base of this PR): both files were accepted, and the program printed "Loaded image.ref: nc-fabric-owner-20260924@sha256:c4c0d3add3869e49d0ce8d03bd7e41bbe2682d0df285ef6fde5f181b123cf83e". The guide said "Examples that omit image use the generic default agent image pin from versions.json."
After (this PR): both files were rejected during loading with "image.ref must name an agent image pinned by a SHA-256 digest; no default image is published, so build one as described at https://github.com/NVIDIA/NemoClaw/blob/v1/docs/build-deploy/build.md#build-agent-images". The guide now says "Every sandbox requires image.ref; no default agent image is published."
|
…gent-image-nc Bring the branch up to date with v1 so it no longer conflicts. The only conflict was in `versions.json`. v1 moved the OpenShell gateway, supervisor, sandbox runtime and chart images to the 0.1.9 digests, and this branch removed `images.agent`, because the SDK no longer defaults the agent image. The resolution keeps v1's new digests and leaves `images.agent` out. The inference resource names the SDK compiles depend on the sandbox image reference and the harness, not on `versions.json`, so they are unchanged by the merge. Regenerating the OpenShell contract fixtures produced no differences, and the hand-written Ollama integration scenarios keep the names they already use. Signed-off-by: Deepak Jain <[email protected]>
|
@coderabbitai review |
Action performed
|
Add a breaking-change release note: the SDK no longer supplies a default agent image, so every sandbox must name one pinned by digest on every runtime, and the Rust SDK drops config::DEFAULT_AGENT_IMAGE. Signed-off-by: Carlos Villela <[email protected]>
…n harness (#14579) `nemoclaw onboard` now suggests, at the sandbox image question, a local agent image that installs the chosen harness, pinned by digest, and links the build instructions when the gateway's engine has none. ## Problem Since #14564, every sandbox must set `image.ref`, and onboarding asks for it with no suggestion, or with the template's placeholder digest, even on a host whose engine holds images built with `cargo images build` for the chosen harness. The user has to find the digest with `docker image inspect` and paste it. Part of #14235: this covers matching the harness to local images. Suggesting published images waits for #13516. Skipping the question when exactly one image fits, and naming a missing image in the review, are left for later. ## Change - The SDK's discovery gains an `AgentImages` read for one engine and one Fabric adapter. It returns, newest first, the digest reference (`NAME@sha256:DIGEST`) of each image whose `io.nemoclaw.fabric.catalog` label installs that adapter's runtime. It lists images through the existing engine client, filtered by the label. An image without a repository digest, as in Docker's classic image store, can't be pinned and is left out. Plans never make this read. - Onboarding makes the read at a sandbox image question once the gateway's engine and the harness are authored. One function maps the question to its read for both the TUI and the journey. - The question offers those references as choices and suggests the newest, unless its suggestion, such as a template's, is one of them. With none, its note links [Build Agent Images](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/build-deploy/build.md#build-agent-images). The question never offers an image the engine didn't list or one for another harness. - Matching uses the adapter IDs in each image's label, so it needs no list of harnesses. - Docs: the onboarding guide's target checks, the build page, the design notes, and a release note. Without discovery, or before the engine is known (several engines answered for the runtime, so the engine question comes after the image question), the image question is unchanged. ## Beyond CI On a Linux host with Docker's containerd image store and locally built agent images, `nemoclaw onboard` with Hermes listed the Hermes images by digest and suggested the newest. With `examples/onboarding/openclaw.yaml`, the newest local OpenClaw image replaced the template's placeholder digest as the suggestion. Accepting the suggestion reached the review; the image check that runs on saving was not exercised. Podman was not tried. --------- Signed-off-by: Carlos Villela <[email protected]>


A sandbox now has to name its agent image on every runtime, as it already did on Kubernetes and OpenShift. The SDK no longer falls back to a default agent image that exists only on the host that built it.
Problem
On Docker and Podman, a sandbox that omitted
image.refgot the digest pinned inversions.json,nc-fabric-owner-20260924@sha256:c4c0d3add.... No registry holds that image, so it resolved only on the machine that built it. Every example that left the image out depended on it.Resolves #14551. #13516 tracks publishing agent images, and #14235 tracks the onboarding suggestion that depended on the default.
Change
image.refis required for every sandbox. A missingimage, an emptyimage: {}and an emptyrefare all rejected, and the error links to the agent image build instructions.images.agentis gone fromversions.json, along with the SDK'sDEFAULT_AGENT_IMAGEconstant and the code that filled it in.image.metadata, sinceimage.refis required everywhere.nc-fabric@sha256:000...0. The live workflows already replace that digest with the image they build. The schema and configuration reference are regenerated, and the docs no longer describe a default image.nonefor an empty reference. Onboarding suggests an agent image that can't be pulled; match the harness to a published image #14235 can add a suggestion once Publish the v1 container images with each release #13516 publishes images.imagefails on a Fabric runtime and on Podman. The onboarding and authoring tests answer the new question.Left out: publishing agent images (#13516) and changing the onboarding suggestion (#14235). Both stay with their issues.
Beyond CI
Nothing here needs a live run. The SDK, authoring and onboarding suites, the schema check and Clippy passed locally. The tests that need a local socket, a Git hook directory or a live engine could not run in my sandbox and are left to CI.
Summary by CodeRabbit