Skip to content

Runtime input contract is the public YAML service type #12427

Closed

Description

@cv

Investigation Summary

  • targets in crates/nemoclaw-sdk/src/services/installers/vllm/mod.rs sets placement and publication to None (lines 112-113) and serializes ServiceDefinition::Vllm as the runtime configuration (line 148), which becomes NEMOCLAW_RUNTIME_SPEC.
  • crates/nemoclaw-sdk/src/services/runtime/mod.rs:21-29 parses ServiceDefinition and calls the configuration's validate().
  • ServiceDefinition is the spec.services YAML type, so schema changes are runtime protocol changes.

Description

The runtime has no input type of its own; it consumes the SDK's YAML type with deployment fields blanked.
Parsing the spec requires the SDK's configuration and validation code.

Expected: a runtime-owned spec type carries only serving, model, recipe, memory, and hardware settings.
The SDK builds it from YAML and embeds it; placement and publication remain SDK fields.

Reproduction Steps

Run from a NemoClaw checkout at 515fad88f.

  1. Show how the vLLM installer builds the runtime configuration:

    sed -n '108,150p' crates/nemoclaw-sdk/src/services/installers/vllm/mod.rs
  2. Show how the runtime parses it:

    sed -n '10,36p' crates/nemoclaw-sdk/src/services/runtime/mod.rs
  3. Show where the configuration becomes the container environment:

    grep -n NEMOCLAW_RUNTIME_SPEC crates/nemoclaw-sdk/src/managed/spec.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
    refactor
    area: inference
    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.

    Added runtime-owned RuntimeSpec and serving configuration. SDK YAML types retain deployment envelopes for image, container, placement, and publication, and serialize only the runtime-owned settings into the runtime input. The runtime validates that input before starting model work.

    Validation: Contract tests reject deployment-only fields, invalid preparation limits, and protected authentication settings; SDK schema and default-preservation tests 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