Skip to content

refactor: replace the Python image checks with Rust qualification - #13569

Merged
cv merged 2 commits into
v1from
refactor/image-checks-in-rust
Oct 21, 2026
Merged

cv merged 2 commits into
v1from
refactor/image-checks-in-rust

Conversation

@cv

@cv cv commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Failure

NemoClaw's image checks were Python scripts mounted into each image: image/test_image.py for every agent image, and image/test_agent_contract.py for the reference image's lifecycle. Several checks tested other components or repeated what the build already enforces:

  • Other components' behavior: whether Hermes can reach MCP servers (Hermes internals), and how Fabric's TypeScript Pi adapter is packaged.
  • Harness names: a hard-coded list of the three harnesses that carry Node.js.
  • Already enforced by the build:
    • the catalog label matching the image's declarations (the labeled stage refuses a mismatch since refactor: label agent images in the Bake build #13514);
    • installed packages following Fabric's lock, and Python satisfying each adapter's range (the locked install enforces both).

Also, AGENTS.md keeps tooling and tests in Rust and Python only inside images whose workload runs on it. image/vllm/test_auth.py was a manual script nothing ran.

Decision

cargo images qualify IMAGE... checks NemoClaw's promises about its images, in Rust:

  • Every image, from its label and a shell command that reports facts about the image, run offline as the image's own user:
    • the runtime command is fabric-agent-ctl, and it is executable;
    • the retained sources match the image's provenance;
    • the image runs as 10001:10001, /sandbox and TMPDIR belong to 10001, and everything in /sandbox is readable by others, as OpenShell needs on Kubernetes and OpenShift;
    • no package installer and no build toolchain.
  • The reference image also starts, invokes, and stops one runtime with NemoClaw's test adapter, through fabric-agent-ctl serve in an offline, read-only container with only /sandbox writable.

The image workflow qualifies every agent image this way, and the three Python files are removed. The Python the images run (catalog.py and its helpers, the reference test adapter, and their tests) stays until image building moves to the Fabric repository.

Validation

  • New tests for the fact checker (an image that meets the contract, and each problem named) and for the lifecycle container's arguments. They failed to compile before the change.
  • On a DGX Spark, cargo images qualify passed for all eleven local images, the reference image in 4 s with its lifecycle and each production image in about 1 s. The first run caught a bug in my facts script: it listed retained sources with a glob that missed dotfiles and nested files.
  • docker buildx bake check, actionlint and cargo ci (bundle and lifecycle included) passed, and fern check reported 0 errors.

@cv
cv enabled auto-merge (squash) October 21, 2026 01:23
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit fedb8b6 into v1 Oct 21, 2026
@cv
cv deleted the refactor/image-checks-in-rust branch October 21, 2026 01:35
gaveezy added a commit that referenced this pull request Oct 21, 2026
v1 now builds the Pi agent image on every platform (#13569 and the
Bake image changes), so this branch's correction to "Pi on ARM64 or
Deep Agents on AMD64" is stale:

- docs/contributing/live-tests.md conflicted on that sentence; keep
  v1's "The runner builds Pi".
- docs/contributing/testing.md merged cleanly but kept this branch's
  "Pi on ARM64, Deep Agents on AMD64" for the live-docker step; it now
  says "the Pi agent image", matching live_images::agent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance 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: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance 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