Skip to content

feat: accept multi-platform agent image indexes on Kubernetes - #13565

Merged
cv merged 4 commits into
v1from
feat/multi-platform-metadata-bundles
Oct 21, 2026
Merged

cv merged 4 commits into
v1from
feat/multi-platform-metadata-bundles

Conversation

@cv

@cv cv commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Closes #13549.

Failure

A Kubernetes sandbox's metadata bundle could describe only one platform: crates/nemoclaw-fabric/src/image_metadata.rs accepted an index only with exactly one Linux child, "until per-platform runtime contracts are modeled". Every published v1/<image> index lists linux/arm64 and linux/amd64, so a Kubernetes sandbox had to reference one platform's manifest instead of the release's index. Found while testing v1.0.0-rc1 (#13516).

Decision

Accept an index when its platforms agree. The cluster, not NemoClaw, chooses which platform a node pulls, so NemoClaw only needs to know that every platform declares the same runtime contract.

  • Bundle schema 2: the bundle holds the root and, for each Linux platform the root lists, that platform's manifest and config, as exact bytes. manifest_digest is gone; there is no compatibility to keep.

  • The check:

    • a manifest reference is one platform;
    • an index reference names every Linux platform it lists (amd64 or arm64, at most one each), and the bundle must carry each one and nothing else;
    • every platform's catalog label must be identical;
    • entries for other platforms, such as attestations, are ignored.

    With one platform, the observation reports its architecture and config digest as before. With several, neither is set; the architecture only feeds a comparison with a local engine, which Kubernetes doesn't have.

  • cargo images export-metadata IMAGE --output PATH: the --platform flag is gone. The bundle includes every Linux platform the image lists. An archive that lacks one, as docker image save writes for a pulled multi-platform image, is refused with an error naming the missing platform; Provide Kubernetes metadata bundles for published agent images #13548 covers exporting from a registry.

  • Docs: docs/build.md and docs/kubernetes.md describe the bundle and drop --platform. Also fixes a stale line in docs/contributing/live-tests.md (the Kind runner uses Pi on both platforms since refactor: build one agent harness list on every platform #13520).

All ten published v0.1.0-rc1 agent indexes carry byte-identical catalog labels on arm64 and amd64, checked through the registry. Nothing here is harness-specific.

Validation

  • The rewritten bundle-check tests failed before the change: one-platform and two-platform indexes, platforms with different catalogs, missing or extra blobs, schema 1 rejected.
  • The exporter tests cover an index listing a Linux platform the archive lacks.
  • cargo ci passed, including the bundle and lifecycle steps.
  • cargo ci live-docker (9 tests) and cargo ci live-kind (7 tests, which export and load the new bundles) passed on a DGX Spark.

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

Copy link
Copy Markdown
Contributor

…13566)

Closes #13548. Stacked on #13565.

## Failure

A Kubernetes sandbox names its agent image's metadata bundle in
`image.metadata`, but a bundle could only come from `cargo images
export-metadata` run on a locally built image. A user deploying a
published release had no way to get one: the tool isn't in the CLI, and
`docker image save` of a pulled multi-platform image omits the configs
it needs. Found while testing `v1.0.0-rc1` (#13516).

## Decision

Publish the bundles with each release, instead of making the CLI read
registries (that would mean NemoClaw handling registry logins, which
belongs to Docker and the registry).

- **`cargo images export-metadata --registry
HOST/REPOSITORY@sha256:DIGEST`** fetches the root and, for each Linux
platform it lists, the platform's manifest and config over the registry
API. It checks every document against its digest, skips attestations,
and builds the bundle with the same code as a local export, so both
produce identical bundles. It answers the registry's bearer-token
challenge, with `NEMOCLAW_REGISTRY_USERNAME` and
`NEMOCLAW_REGISTRY_PASSWORD` when set. Plain HTTP is allowed only for
loopback hosts.
- **The staging workflow**, after promoting each agent image's index,
exports that index's bundle from `ghcr.io` with the workflow's token. It
attaches the bundles to the draft as `<image>.metadata.json` and adds a
Kubernetes metadata column to the release notes. The runtime and proxy
images don't need one.
- **Docs:**
- `docs/kubernetes.md`: for a published release, use the index reference
from the notes and the attached bundle;
  - `docs/build.md`: `--registry`;
  - `docs/contributing/releases.md`: the attached bundles.

## Validation

- Two new tests run a local registry stand-in that issues a bearer-token
challenge. They check that a two-platform index plus attestation becomes
the index, both manifests and both configs as exact bytes, with the
attestation never fetched, and that a changed config or a missing
platform fails. They failed to compile before the change.
- Against `ghcr.io`, exporting `v0.1.0-rc1`'s `v1/deepagents` index with
a token wrote a schema 2 bundle with the index, the arm64 and amd64
manifests, and both configs.
- `actionlint` is clean, `cargo ci` passed, and `fern check` reported 0
errors.
- The workflow change runs at the next release-candidate tag. Staging
`v0.1.0-rc2` and deploying its Deep Agents image on kind straight from
the release's index and bundle is the end-to-end check for #13548's
"done when".
@cv
cv merged commit ab4d047 into v1 Oct 21, 2026
@cv
cv deleted the feat/multi-platform-metadata-bundles branch October 21, 2026 00:14
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality platform: k8s Affects Kubernetes deployments 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: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants