Repository navigation
feat: add Linux AMD64 gateway and Fabric agent runtime support - #11998
Merged
Merged
Conversation
Managed gateway validation treated every image as ARM64, so apply rejected a valid AMD64 OpenShell image before startup.\n\nAllow Linux ARM64 and AMD64 for gateways while preserving exact architecture matching for managed inference services.\n\nValidated with the focused managed gateway fixture test and workspace Clippy.
The agent Bake matrix only exposed ARM64 locks, leaving Linux AMD64 hosts without a native OpenClaw image path.\n\nAdd an architecture-specific hashed wheel lock, Bake target, x86 CI build and native checks, and scoped build guidance without claiming live deployment qualification.\n\nValidated with the Bake interface tests, Buildx Dockerfile check, strict Fern documentation check, and workspace Clippy.
Contributor
The first AMD64 slice accepted both supported Linux image architectures without proving that the selected Docker engine matched, so an ARM64 image could pass validation on an AMD64 engine.\n\nCompare Docker image architecture with the engine's reported architecture, including Docker's canonical and host-style aliases, while keeping managed-service validation unchanged.\n\nValidated with a fail-first mismatch fixture, both focused gateway tests, the 109-test SDK library suite, rustfmt, and SDK all-target Clippy.
AMD64 agent builds were exposed through an OpenClaw-only target, so the shared Fabric matrix could not select a native platform or build the general Deep Agents runtime. Make the agent platform explicit, map each platform to its qualified harness locks, add a hashed AMD64 Deep Agents lock, and extend AMD64 CI while leaving harnesses without verified native artifacts on ARM64. Validated with Bake interface tests, ARM64 and AMD64 Buildx checks, native AMD64 Deep Agents and OpenClaw builds, assembled-image provenance tests, the isolated Deep Agents protocol fixture, OpenClaw native suites, and cargo fmt --check.
The AMD64 selection test retained an unused target-name binding, so the shared image lint stage stopped before the ARM64 build. Iterate over target values directly. Validated with the focused unittest and the complete native AMD64 image lint target.
The latest v1 Deep Agents runtime adds native Brave MCP discovery and pins MCP 1.x, while the AMD64 lock still selected MCP 2.2.0 and failed to import RequestContext during the image build. Merge v1 and regenerate every AMD64 wheel hash from its corrected Deep Agents lock so both architectures install the same dependency versions. Validated with the image build tests, ARM64 and AMD64 bake checks, an actual AMD64 Deep Agents build, the offline Brave tests, assembled image checks, the isolated adapter protocol fixture, image lint, and cargo fmt --check.
Collaborator
Author
|
Live Linux AMD64 deployment evidence is posted in #11997: #11997 (comment) The current PR revision passed plan/apply and started the AMD64 Deep Agents runtime, but the sandbox failed at the 15-minute Sandbox Protocol bearer-renewal boundary. The supervisor exited with code 1 after 899 seconds, and OpenShell marked the sandbox Consequently, the live qualification remains incomplete. Before the next attempt, this branch needs verified OpenShell gateway/supervisor/runtime pins containing that fix, followed by a fresh isolated lifecycle run. |
cv
approved these changes
Sep 18, 2026
cv
added a commit
that referenced
this pull request
Oct 20, 2026
## Failure Only Deep Agents and OpenClaw built for linux/amd64. `docs/build.md` said the other eight harnesses stayed ARM64-only "until their pinned native dependencies have matching AMD64 artifacts and qualification." That restriction dates from #11998, when each harness had its own lockfiles with per-architecture wheel hashes and only those two got amd64 lockfiles. Commit `0788984c01` then removed every harness lockfile: images install from Fabric's frozen `uv.lock`, which records wheels for all platforms. So the stated reason no longer clearly applies, and #13516 needs to know which images can be published for amd64. ## Decision List all ten harnesses for linux/amd64 in `docker-bake.hcl`, and let CI's native amd64 image job build and qualify each one, as the arm64 job does. Any harness that fails there goes back to ARM64-only, with its actual reason recorded in `docs/build.md`. ## Validation - **Locally:** - the Bake tests pass, with the amd64 test now expecting all ten; - `docker buildx bake --check` passes for both platforms; - `cargo ci` passes. - **In CI:** this host can't build amd64 images, so the amd64 `Images` job, which builds each harness and runs `cargo images qualify` (with lifecycles for OpenClaw, Hermes and Pi) plus the image tests, is the test of this change.
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.
Summary
AGENT_PLATFORMselect the shared Fabric image platform and its qualified harness locksRefs #11997. This does not close the tracking issue because end-to-end apply, inference, recovery, export, and destroy qualification remains.
Failure and decision
Managed gateway validation used the ARM64 service default even when the spec had no managed inference service. Docker correctly reported the gateway image as
linux/amd64, but apply rejected it before container creation.Gateway validation now compares the Linux image architecture with the selected Docker engine, including the
amd64/x86_64andarm64/aarch64aliases. Managed inference services still require the exact architecture declared by hardware or recipe compatibility.The agent build no longer exposes AMD64 through an OpenClaw-only target. The shared
agentsmatrix selects a platform-specific lock map. Linux AMD64 currently includes Deep Agents and OpenClaw because both have verified native artifacts; harnesses without matching pinned artifacts remain ARM64-only instead of being relabeled as portable.After merging current
v1, Deep Agents' new native Brave MCP test caught a stale x86 dependency selection:langchain-mcp-adaptersrequires the MCP 1.xRequestContextAPI. The AMD64 lock is regenerated from the correctedv1lock, including architecture-specific wheel hashes, and now passes that test during the image build.Validation
cargo fmt --checkcargo clippy --workspace --all-targets -- -D warningson the gateway commitscargo test -p nemoclaw-sdk --lib: 108 passed, one explicitly ignored live testpython3 -B -m unittest image.test_builds: 5 passeddocker buildx bake --checkrunslinux/amd64Deep Agents and OpenClaw image builds with strict wheel hashesagents-amd64job, including both builds and all runtime fixturesThe complete
cargo test --workspacewas previously attempted twice with debug data disabled and single-job linking, but this host's root filesystem ran out of space while linking the complete test set. No test failure was observed before the build stopped. The general-agent image follow-up changes no Rust sources.