Skip to content

feat(onboarding): suggest a local agent image that installs the chosen harness - #14579

Merged
cv merged 3 commits into
v1from
cv/onboarding-local-agent-image
Nov 18, 2026
Merged

cv merged 3 commits into
v1from
cv/onboarding-local-agent-image

Conversation

@cv

@cv cv commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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. 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.

…n harness

At the sandbox image question, onboarding lists the agent images on the
gateway's Docker or Podman engine, offers by digest the ones whose
io.nemoclaw.fabric.catalog label installs the chosen harness, newest
first, and suggests the newest. When none does, the question links the
agent image build instructions.

Part of #14235

Signed-off-by: Carlos Villela <[email protected]>
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
@cv

cv commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi (session format v3) with the Pit TypeScript tool Session header; the harness release isn't in the record
Skills recorded test-driven-development (complete read); write-tests (complete read); nemoclaw-contributor-create-pr (complete read) Tool reads to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup context and tool reads to cutoff
Tool calls partial typescript: 85 Wrapper calls, including failed ones, to cutoff; nested shell, git, and gh calls inside each program aren't recorded separately
Tokens partial input: 13557805; cached input: 13331713; output: 68886 Sum of assistant usage (input + cacheRead + cacheWrite; cacheRead; output) to cutoff; 14 assistant entries carry zero counters, so these are lower bounds
Session window recorded 2026-11-18T06:49Z to 2026-11-18T07:21Z; 32 min First event to cutoff, including idle time; the task is the whole session
Compactions recorded 0 No compaction entries; context edits elided absorbed tool results
Models recorded claude-opus-5-5 Model change entry; no later changes
Reasoning levels recorded high Thinking-level entry; no later changes

@github-actions

Copy link
Copy Markdown
Contributor

cv added 2 commits November 18, 2026 00:49
The agent image read names the adapter, so it returns just the digest
references to offer, newest first. One function maps a sandbox image
question to its read for both the TUI and the journey, the read keeps
the first digest reference per image, and a local image now replaces a
suggestion the engine doesn't hold. Tests and docs shrink to match.

Signed-off-by: Carlos Villela <[email protected]>
@cv
cv enabled auto-merge (squash) November 18, 2026 08:02
@cv
cv merged commit ccb5cc9 into v1 Nov 18, 2026
80 checks passed
@cv
cv deleted the cv/onboarding-local-agent-image branch November 18, 2026 08:13
@cv cv added the v1 NemoClaw v1 branch label Nov 19, 2026
cv pushed a commit that referenced this pull request Nov 19, 2026
#14598)

`nemoclaw onboard` no longer asks for the sandbox image when the gateway's engine holds exactly one image that installs the chosen harness. It records that image as the answer, and the review shows it like any other.

## Problem

After #14579, onboarding offers the local images that install the chosen harness at the sandbox image question. When only one image fits, the question still appears with a single choice, so the user confirms something that has no alternative. On Docker Desktop with the containerd image store, an engine holding one OpenClaw image (`nc-fabric:openclaw`) still asked "Sandbox image" as question 5 with one choice.

Resolves #14597, split from #14235.

## Change

- `JourneyState::answer_single_agent_images` answers the image question through the normal answer path when #14579's image read succeeded, listed exactly one image, and the document names no other. The saved YAML contains it, and going back from a later question skips it.
- It waits until the harness, runtime, and engine questions are answered, since a different choice there may not hold that image.
- The image read follows the sandbox's `harnessRef` through the existing `harness_kind`.
- The wizard calls it whenever the state or observations change. Before taking input, the terminal keeps reading while a read moves the journey to another question, so the model question still gets its catalog read, and it drops keys typed during the read that answered the image question.
- The question is still asked when several images fit, when none fits, when discovery is off or the read failed, and when the template or an earlier answer names another image, including the template's placeholder digest.

There is no generic "one valid choice answers itself" rule to reuse. The question choices are suggestions, not the valid set: the image and model questions take free text, and the runtime deliberately stays a choice when one engine answered. The closest precedent, the engine question, is dropped by the resolver once the runtime answer writes the only engine that answered.

## Beyond CI

Ran `nemoclaw onboard` with the built-in defaults against a throwaway Docker 29.10 engine (containerd image store) and accepted each suggestion. With one OpenClaw image on the engine, the image question did not appear, the review's Image row showed its digest, and the saved YAML named it. With a second OpenClaw image added, the image question was asked as question 5 with both digests.



Signed-off-by: Deepak Jain <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
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.

1 participant