Skip to content

feat: add Linux AMD64 gateway and Fabric agent runtime support - #11998

Merged
cv merged 6 commits into
v1from
feat/linux-amd64-gateway-openclaw
Sep 18, 2026
Merged

cv merged 6 commits into
v1from
feat/linux-amd64-gateway-openclaw

Conversation

@sandl99

@sandl99 sandl99 commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • accept native Linux AMD64 OpenShell gateway images only when they match the selected Docker engine
  • make AGENT_PLATFORM select the shared Fabric image platform and its qualified harness locks
  • add hashed Linux AMD64 Deep Agents and OpenClaw runtime locks
  • build and exercise both AMD64 runtimes on an x86 GitHub Actions runner
  • document platform-specific build commands and retain live-deployment qualification as TBD

Refs #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_64 and arm64/aarch64 aliases. 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 agents matrix 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-adapters requires the MCP 1.x RequestContext API. The AMD64 lock is regenerated from the corrected v1 lock, including architecture-specific wheel hashes, and now passes that test during the image build.

Validation

  • fail-first engine/image architecture mismatch fixture and focused gateway tests
  • cargo fmt --check
  • cargo clippy --workspace --all-targets -- -D warnings on the gateway commits
  • cargo test -p nemoclaw-sdk --lib: 108 passed, one explicitly ignored live test
  • python3 -B -m unittest image.test_builds: 5 passed
  • default ARM64 and selected AMD64 docker buildx bake --check runs
  • native linux/amd64 Deep Agents and OpenClaw image builds with strict wheel hashes
  • Deep Agents offline native Brave MCP discovery: 4 passed during the image build
  • assembled-image version, architecture, retained-source, and provenance checks for both AMD64 images
  • isolated Deep Agents protocol fixture
  • OpenClaw AMD64 suite: 37 Python tests and four native TypeScript fixtures
  • AMD64 image lint, Python formatting/lint, TypeScript formatting/lint/typecheck
  • GitHub Docs / v1 source validation and PR preview
  • GitHub agents-amd64 job, including both builds and all runtime fixtures

The complete cargo test --workspace was 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.

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.
@github-actions

Copy link
Copy Markdown
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.
@sandl99 sandl99 changed the title feat: add Linux AMD64 OpenClaw deployment path feat: add Linux AMD64 gateway and Fabric agent runtime support Sep 17, 2026
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.
@sandl99
sandl99 requested review from cv and kaofelix September 17, 2026 17:53
@sandl99

sandl99 commented Sep 17, 2026

Copy link
Copy Markdown
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 ControlSupervisorExited. This matches the defect fixed by ai-openshell/openshell@2d99ecf, which is newer than the current 7e7a8d561 pin.

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
cv merged commit 02ece44 into v1 Sep 18, 2026
11 checks passed
@cv
cv deleted the feat/linux-amd64-gateway-openclaw branch September 18, 2026 02:23
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery feature PR adds or expands user-visible functionality integration: openclaw OpenClaw integration behavior platform: container Affects Docker, containerd, Podman, or images platform: linux Affects non-Ubuntu Linux environments labels Oct 5, 2026
@cv cv added the v1 NemoClaw v1 branch label Oct 12, 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.
@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: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery feature PR adds or expands user-visible functionality integration: openclaw OpenClaw integration behavior platform: container Affects Docker, containerd, Podman, or images platform: linux Affects non-Ubuntu Linux environments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants