Skip to content

Small SDK helpers pull deployment, Docker, and OpenShell code into the runtime #12429

Closed

Description

@cv

Investigation Summary

  • crates/nemoclaw-sdk/src/services/installers/vllm/recipes/preparation.rs:9 imports state::save_json; state/mod.rs:313 also runs tofu show through process::run, which uses the deployment Progress type.
  • services/placement.rs:64 and config/validation.rs:177 call docker::Engine::validate_endpoint, a string check defined on the bollard-backed Engine.
  • compile.rs:118 and compile.rs:139 call openshell::inference_profile and openshell::policy_json, and installer modules call into compile.

Description

These calls are small, but each links a runtime or configuration module to deployment, Docker, or OpenShell code.
They are the cheapest first cuts toward #12426.

Expected: save_json and endpoint validation move to dependency-free helpers, and configuration validation no longer depends on docker::Engine.

Reproduction Steps

Run from a NemoClaw checkout at 515fad88f.

  1. Show the state helper and its tofu dependency:

    grep -n save_json crates/nemoclaw-sdk/src/services/installers/vllm/recipes/preparation.rs crates/nemoclaw-sdk/src/state/mod.rs; grep -n 'crate::process::run' crates/nemoclaw-sdk/src/state/mod.rs
  2. Show endpoint validation on the Docker engine type:

    grep -n 'Engine::validate_endpoint' crates/nemoclaw-sdk/src/services/placement.rs crates/nemoclaw-sdk/src/config/validation.rs
  3. Show compilation calling OpenShell helpers:

    grep -n 'crate::openshell::' crates/nemoclaw-sdk/src/compile.rs

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 theissue type on Sep 29, 2026
  2. added
    refactor
    area: inference
    needs: triage
    v1
    on Sep 29, 2026
  3. cv commented on Sep 29, 2026

    @cv
    CollaboratorAuthor

    Completed on v1 in 2e2ef1ee57, 87cdf3f8fe, fadc3b0969, eb1e54fce6.

    Separated the small helpers from deployment and transport ownership: durable file helpers belong to the runtime, endpoint parsing belongs to pure SDK configuration, policy/profile compilation is separate from OpenShell transport, and configuration diagnostics share the runtime-owned type. Configuration validation no longer calls docker::Engine.

    Validation: Endpoint validation, runtime dependency-closure, configuration diagnostics, and schema regressions pass. final native CI passed.

  4. added
    area: architecture
    on Oct 5, 2026
  5. changed the issue type fromtoon Oct 5, 2026
  6. removed
    needs: triage
    on Oct 5, 2026
  7. 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