Skip to content

fix(apply): pull and read every agent image before creating the gateway - #14701

Merged
cv merged 2 commits into
v1from
fix-14596-rejected-create-leftovers
Nov 20, 2026
Merged

cv merged 2 commits into
v1from
fix-14596-rejected-create-leftovers

Conversation

@kaofelix

@kaofelix kaofelix commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

nemoclaw apply now pulls and reads every agent image before it creates the gateway, its storage, or any agent configuration, so an image that can't be pulled or doesn't fit its sandbox leaves nothing to destroy. nemoclaw plan and the nemoclaw onboard review report an image the engine doesn't hold as absent and link the build instructions.

Problem

An agent image the engine doesn't have wasn't reported until apply failed, and by then apply had started the gateway. With examples/onboarding/openclaw.yaml and its placeholder nc-fabric@sha256:000… image:

  • The onboarding review showed Image … · not checked. The Enter that saved also made the first image read, so the user never saw "not present" before deployment.yaml was written.
  • nemoclaw plan said "Selected image Fabric capabilities are unverified; image metadata or compatibility is incomplete". On a first plan the discovery output is partly unknown, and plan ignored the reads OpenTofu keeps in prior_state, so it never saw that the image read found the image absent. It printed the message for the _acquired read, which waits for the pull.
  • nemoclaw apply failed with pull access denied for nc-fabric, but the gateway container, its network, its data volume, and the agent configuration remained.

Resolves #14596.

Change

  • Apply: every resource except docker_image pulls depends on each pulled sandbox image's data.fabric_harnesses.<sandbox>_acquired read (sandbox_images_first in compile.rs). That read fails when the pull fails or the image's Fabric metadata doesn't fit the sandbox, so both stop apply before anything is created. Pulls still run in parallel. This mirrors what runtime_image_checks already does for inference images.
  • Plan: reads data sources from prior_state when the discovery output is partly unknown, using each read's own attribute (engine_json and hardware_json for host_engine). An image read with status unavailable reports the image as not on the engine with the build link, and its _acquired read adds no second message.
  • Onboarding:
    • The review reads plan's engine and image queries when it opens, as it already does for credentials. An absent image's row says not present, with a line on how to get one.
    • Enter still reads the target again, but saves only when the verdict matches what the review showed. Otherwise the review shows the new verdict, and the next Enter saves.
    • Saving stays allowed with an absent image, because apply pulls it.
  • BUILD_AGENT_IMAGES moves to nemoclaw_authoring's public API so the review row and the image question share it.

Beyond CI

On Docker Desktop 29.9.3 (arm64), before merging the latest v1, with the issue's deployment (nvidia.fabric.codex and the placeholder image):

  • nemoclaw plan listed the absent image, with the build link, and the gateway check that waits for apply.
  • nemoclaw apply failed on pull access denied for nc-fabric. State held only the plan-time reads and the gateway image pull, and Docker showed no new container, network, or volume.

Not verified: the onboarding review was checked only through its rendered-screen tests, not by hand.

Apply waits for each sandbox image's pull and read before creating
the gateway, its storage, model servers, the workspace, or agent
configuration. Plan reports an image the engine doesn't hold as absent
and reads the observations OpenTofu keeps in prior_state. Onboarding's
review reads the image and saves only when Enter's read matches what
the review showed.
…te-leftovers

# Conflicts:
#	crates/nemoclaw-authoring/src/journey_state/observations.rs
#	crates/nemoclaw-onboarding/src/tui/tests.rs
#	docs/build-deploy/usage.md
@kaofelix

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Claude Code 2.1.328 Version on every session record entry
Skills recorded nemoclaw-contributor-create-pr (injected) Skill invocations to cutoff; no other skill loaded
Instruction files recorded AGENTS.md (injected); user's global CLAUDE.md and AGENTS.md (injected); auto-memory index (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read); one auto-memory note (complete read) Startup context injections and file reads to cutoff
Tool calls recorded main: Bash 99, Edit 12, Read 12, Agent 2, Skill 1, ToolSearch 1; subagents: Bash 41, Read 8, SubagentHandback 2 Unique tool-use IDs to cutoff, including failed calls; the two subagents' calls are their own records, not added to main
Tokens recorded input: 21896566; cached input: 21228414; output: 84600 Final usage per response ID in the main record and both subagent records, through cutoff
Session window recorded 2026-11-19T16:51Z to 2026-11-20T12:07Z; 19 h 15 min First record entry to cutoff, including overnight idle time
Compactions recorded 0 No compaction boundary in the record to cutoff
Models recorded claude-sonnet-5-5; claude-opus-5-5 Sonnet for the first three main-thread requests, then Opus for the rest and both subagents
Reasoning levels recorded medium Effort parameter on every main-thread API request

@github-actions github-actions Bot added the v1 NemoClaw v1 branch label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 64b918d into v1 Nov 20, 2026
94 of 95 checks passed
@cv
cv deleted the fix-14596-rejected-create-leftovers branch November 20, 2026 20:12
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.
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 25, 2026
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