Repository navigation
feat: accept multi-platform agent image indexes on Kubernetes - #13565
Merged
Merged
Conversation
cv
enabled auto-merge (squash)
October 20, 2026 23:50
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13549.
Failure
A Kubernetes sandbox's metadata bundle could describe only one platform:
crates/nemoclaw-fabric/src/image_metadata.rsaccepted an index only with exactly one Linux child, "until per-platform runtime contracts are modeled". Every publishedv1/<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 testingv1.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_digestis gone; there is no compatibility to keep.The check:
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--platformflag is gone. The bundle includes every Linux platform the image lists. An archive that lacks one, asdocker image savewrites 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.mdanddocs/kubernetes.mddescribe the bundle and drop--platform. Also fixes a stale line indocs/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-rc1agent indexes carry byte-identical catalog labels on arm64 and amd64, checked through the registry. Nothing here is harness-specific.Validation
cargo cipassed, including the bundle and lifecycle steps.cargo ci live-docker(9 tests) andcargo ci live-kind(7 tests, which export and load the new bundles) passed on a DGX Spark.