Skip to content

feat: document derived agent images and leave Fabric compatibility to Fabric - #13433

Merged
cv merged 4 commits into
v1from
docs/derived-images
Oct 18, 2026
Merged

cv merged 4 commits into
v1from
docs/derived-images

Conversation

@cv

@cv cv commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Closes #12016.

Failure

Downstream blueprints extend NemoClaw agent images: the VSS blueprint, for example, derives from one pinned by digest and adds skills, a domain CLI and workspace files. Nothing stated what such a derived image must keep. Trying it on current v1 showed:

  • A conforming derived image works: labels carry over through FROM.
  • A missing catalog label fails at plan time with a misleading message: "Harness unavailable: The image declares no runtime for this adapter", then advice about spec.gateway.engine.
  • A different Fabric revision in the image's catalog passes silently. NemoClaw compared revisions, but the result, "unknown", was reported nowhere.
  • An image from an older base fails at apply with "sandbox unavailable: SANDBOX_PHASE_ERROR, reason unknown, exit code 1". OpenShell's supervisor log shows the cause: the image's launch command exited. An image from before the fabric-agent-ctl move lacks that command.

Decision

  • Fabric compatibility stays with Fabric. NemoClaw no longer compares the image's Fabric revision with the release's. That comparison was NemoClaw judging another component, and it produced only a silent "unknown". The image's own fabric-agent-ctl validates the agent configuration and reports interface or validation errors when the agent starts (feat: run agents through Fabric's fabric-agent-ctl #13379, refactor(fabric): leave configuration checks to Fabric #13326).

  • NemoClaw keeps checking its own contract, with clearer messages:

    • Missing catalog label: "Harness unavailable" now names io.nemoclaw.fabric.catalog and the rule that a derived image keeps its base image's labels. The local-engine postcondition says the same.
    • The adapter and the platform: checked as before.
  • Unexplained sandbox exits now point to OpenShell's own log: "openshell logs SANDBOX --source sandbox shows why its process exited". Recognized OpenShell reasons keep their specific guidance.

  • Docs: a new derived agent images page:

    • deriving by digest;
    • what to keep: the catalog label, /opt/fabric with fabric-agent-ctl, UID and GID 10001, and the platform;
    • using added skills and tools;
    • rebuilding on upgrade;
    • which failures appear at plan time and which at apply.

    The compatibility, provider and build pages link to it.

  • Base image publication depends on releases (Publish releases and an installation channel #12638). Until then, the page says to build the bases and push them to your own registry.

Validation

  • New tests, each written before its change:
    • the missing-label message;
    • an unexplained sandbox exit pointing to openshell logs.
  • Updated tests:
    • a different Fabric revision now assesses as supported, with no fabric_contract check;
    • the prebuilt-images test allows exactly one build, the derived reference image.
  • Live Docker: the lifecycle test now runs an image derived from the reference image, with one added executable, and runs that executable inside the deployed sandbox. All 9 live Docker tests pass locally.
  • By hand, with nemoclaw plan and apply: a conforming derived image plans; a stale-revision image plans; a no-label image fails naming the label; a pre-fabric-agent-ctl image fails at apply, and its sandbox log shows why.
  • cargo ci passes locally: 1,600 unit tests and 149 lifecycle tests. The docs check reports 0 errors.

cv added 3 commits October 18, 2026 14:31
… Fabric

A downstream image derived from a NemoClaw agent image needs a stated
contract. NemoClaw's own requirements are small: the catalog label, the
Fabric runtime under /opt/fabric, the sandbox user, and the platform.
NemoClaw no longer compares the image's Fabric revision with the
release's: that comparison only produced a silent unknown, and the
image's Fabric reports incompatibility itself when the agent starts.

A missing catalog label now names the label and the keep-your-base's-labels
rule, an unexplained sandbox exit points to openshell logs, and the live
Docker lifecycle runs an image derived from the reference image.
On Windows the Unix-only export tests don't compile, so the builder
followed the test module, which clippy's items_after_test_module rejects.
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 18a1bcb into v1 Oct 18, 2026
@cv
cv deleted the docs/derived-images branch October 18, 2026 22:07
@wscurran wscurran added area: observability Logging, metrics, tracing, diagnostics, or debug output area: packaging Packages, images, registries, installers, or distribution bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Oct 23, 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: observability Logging, metrics, tracing, diagnostics, or debug output area: packaging Packages, images, registries, installers, or distribution bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants