Skip to content

Inference runtime compiles and links the whole SDK #12426

Closed

Description

@cv

Investigation Summary

Description

The inference container's executable is the SDK plus a thin main.
Runtime-only code lives in the public SDK crate, and the runtime builds every SDK dependency, including the OpenShell gRPC, Docker, and Fabric planner crates it never calls.

Expected: nemoclaw-runtime becomes a library and binary that owns runtime code and its input contract, without OpenShell, Docker, or Fabric dependencies.
The accepted scope permits a crate for an existing consumer with a deployment boundary; the inference image is both.

Reproduction Steps

Run from a NemoClaw checkout at 515fad88f.

  1. Show the runtime crate:

    cat crates/nemoclaw-runtime/Cargo.toml crates/nemoclaw-runtime/src/main.rs
  2. Show the SDK's unconditional dependencies:

    sed -n '/^\[dependencies\]/,/^\[target/p' crates/nemoclaw-sdk/Cargo.toml
  3. Show the Linux-only runtime modules inside the SDK:

    grep -rn 'cfg(target_os = "linux")' crates/nemoclaw-sdk/src/services

Environment

  • NemoClaw: v1 at 515fad88f
  • OpenShell pin: 1fe79f53991debf32776853a60f0cbd4e127dcfb (versions.json)
  • NeMo Fabric pin: 24f068c895e5cbc30286bc743498be4e5014d658 (crates/nemoclaw-sdk/Cargo.toml)
  • OpenTofu: 1.12.6 (versions.json)
  • Host: macOS arm64 source checkout; static inspection only, no deployment

Debug Output

Not applicable: this finding comes from static source inspection at the revisions above.
No deployment ran, so there is no nemoclaw debug output.

Logs

No response

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. added
    refactor
    area: inference
    area: packaging
    needs: triage
    v1
    on Sep 29, 2026
  2. added theissue type on Sep 29, 2026
  3. cv commented on Sep 29, 2026

    @cv
    CollaboratorAuthor

    Completed on v1 in 87cdf3f8fe.

    The existing nemoclaw-runtime crate now owns a library, executable, serving contract, preparation, snapshot verification, hardware protection, and supervision. The SDK consumes its contract with execution disabled. The runtime's normal dependency graph excludes the SDK, provider, OpenShell, Fabric, and Docker transport.

    Validation: Runtime contract and dependency-closure tests pass; the runtime also builds and tests without protoc. final native CI passed.

  4. changed the issue type fromtoon Oct 5, 2026
  5. added
    area: architecture
    and removed
    area: packaging
    needs: triage
    on Oct 5, 2026
  6. added this to the Roadmap: GTC DC 2026 milestone on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: architecturearea: inferencerefactorv1

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions