Skip to content

refactor: build one agent harness list on every platform - #13520

Merged
cv merged 1 commit into
v1from
refactor/one-agent-harness-list
Oct 20, 2026
Merged

cv merged 1 commit into
v1from
refactor/one-agent-harness-list

Conversation

@cv

@cv cv commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

Since #13519, both platforms build all ten agent harnesses, but docker-bake.hcl still kept a list per platform (PLATFORM_HARNESSES). cargo images build still 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: the agents matrix iterates keys(HARNESSES), and PLATFORM_HARNESSES is gone.
  • cargo images build:
    • platform_harnesses and the per-platform check go;
    • its fixture test goes too;
    • Bake reports an unknown target itself.
  • Live suites: they run Pi, the smallest agent image, on both platforms. agent, names, unused and load lose their now-unused platform parameters.

(+21 −150, including the removed test.)

Validation

  • docker buildx bake --print agents lists all ten, and AGENT_PLATFORM=linux/amd64 docker buildx bake --check agents passes.
  • cargo ci passed, including the bundle and lifecycle steps.
  • The live suites' behavior on ARM64, where CI runs them, is unchanged.

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

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 7efc856 into v1 Oct 20, 2026
@cv
cv deleted the refactor/one-agent-harness-list branch October 20, 2026 07:52
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.
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images labels Oct 23, 2026
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]>
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 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: packaging Packages, images, registries, installers, or distribution 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