Repository navigation
refactor: build one agent harness list on every platform - #13520
Merged
Merged
Conversation
cv
enabled auto-merge (squash)
October 20, 2026 07:39
Contributor
This was referenced Oct 20, 2026
cv
added a commit
that referenced
this pull request
Oct 21, 2026
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; #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 #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
pushed a commit
that referenced
this pull request
Oct 26, 2026
## Failure #12734 asks the live suites to validate OpenClaw agents managed through Fabric. They ran Pi instead, because OpenClaw couldn't start in an OpenShell sandbox with Fabric v0.5.0 (#13372). #13698 pinned Fabric `main`, where OpenClaw starts, but left the live suites on Pi. ## Decision `live_images::agent()` now returns the `openclaw` Bake target and the `nvidia.fabric.openclaw` harness. `cargo ci live-images`, `live-docker` and `live-kind` all take the agent from it, so no runner changes. ```mermaid flowchart LR images["cargo ci live-images<br/>builds nc-live-images:openclaw"] --> docker["Live / Docker"] images --> kind["Live / Kind"] docker --> sandbox["OpenShell sandboxes<br/>nvidia.fabric.openclaw"] kind --> sandbox ``` - Both Linux platforms switch. The `agents` Bake matrix builds `openclaw` for `linux/arm64` and `linux/amd64` (#13519, #13520), and no doc excludes OpenClaw on either. - The Kubernetes live tests add model extensions only for Pi, so their documents need no change. - Four `ci_lifecycle` tests, the Kind archive-load unit test, `docs/contributing/testing.md` and `docs/contributing/live-tests.md` named Pi as the live image; they now name OpenClaw. - The `docs/limits.md` row for the OpenClaw request walkthrough stays: the live suites request no inference, so they don't rehearse it. **Budgets:** unchanged. The OpenClaw image is larger than Pi's (about 1 GB with the dummy), and loading it happens before the timed tests; OpenClaw adds about 8–10 s to each Kind test that starts an agent, which CI measured well inside the 270 s and 120 s budgets. ## Validation - The updated expectations failed against Pi, then passed after the switch. - `cargo ci` passes after merging v1 `9106480f4`: unit, schema, bundle and 156 lifecycle tests. - Real live runs with OpenClaw on linux_arm64 (`cargo ci live-images`, then `live-kind` and `live-docker --images`): Kind 7/7 in 249.0 s (slowest 97.1 s), Docker 9/9 in 231.2 s. This host runs Kind about 1.5 times slower than a CI runner; Pi took 224.9 s here. - This PR's earlier CI (run 40215004408) passed Live / Kind and Live / Docker on both architectures: Kind took 186.3 s (arm64) and 198.0 s (amd64) of 270 s, the slowest test 82.6 s of 120 s, about 8–10 s more per agent test than Pi. Part of #12734. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Failure
Since #13519, both platforms build all ten agent harnesses, but
docker-bake.hclstill kept a list per platform (PLATFORM_HARNESSES).cargo images buildstill ran Bake once per platform before every build, to explain harnesses built for only one platform. And the live suites still picked Deep Agents on AMD64 because Pi used to be ARM64-only.Decision
One list:
docker-bake.hcl: theagentsmatrix iterateskeys(HARNESSES), andPLATFORM_HARNESSESis gone.cargo images build:platform_harnessesand the per-platform check go;agent,names,unusedandloadlose their now-unused platform parameters.(+21 −150, including the removed test.)
Validation
docker buildx bake --print agentslists all ten, andAGENT_PLATFORM=linux/amd64 docker buildx bake --check agentspasses.cargo cipassed, including the bundle and lifecycle steps.