Skip to content

SDK build script couples the inference runtime to the agent image recipe #12431

Closed

Description

@cv

Investigation Summary

  • crates/nemoclaw-sdk/build.rs reads image/fabric/Dockerfile and image/fabric/catalog.json and asserts that their Fabric pins match the SDK manifest.
  • Because the runtime compiles the SDK, SOURCE_ROOTS in crates/nemoclaw-build/src/source.rs includes both files, and each runtime source archive retains them.
  • source_version hashes every SOURCE_ROOTS input, including examples/onboarding-tui; edits there change the sourceVersion that runtime images record in supervisor.json.

Description

An inference runtime build fails or changes identity when the agent image recipe changes, although the runtime never uses Fabric.

Expected: the Fabric pin check runs only where SDK or authoring code uses the catalog, and runtime source inputs exclude agent image files.

Reproduction Steps

Run from a NemoClaw checkout at 515fad88f.

  1. Show the build script's reads:

    grep -nE 'image/fabric|fn validate_fabric_catalog' crates/nemoclaw-sdk/build.rs
  2. Show the shared source roots:

    sed -n '1,20p' crates/nemoclaw-build/src/source.rs
  3. Show the recorded source version:

    grep -n sourceVersion crates/nemoclaw-build/src/runtime.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
    area: inference
    area: integrations
    on Sep 29, 2026
  2. added theissue type on Sep 29, 2026
  3. added
    area: packaging
    needs: triage
    v1
    on Sep 29, 2026
  4. cv commented on Sep 29, 2026

    @cv
    CollaboratorAuthor

    Completed on v1 in 6283cb4374.

    Runtime source inputs now exclude the SDK, Fabric catalog and agent recipe, and onboarding sources. Cargo's package VCS metadata is excluded from the retained runtime input so unrelated repository commits do not change runtime identity. Fabric pin checks remain with their SDK/authoring consumers.

    Validation: Source-identity tests prove unrelated agent/SDK/onboarding changes leave runtime inputs unchanged, while runtime inputs still change the identity. final native CI passed.

  5. changed the issue type fromtoon Oct 5, 2026
  6. removed
    area: integrations
    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: inferencearea: packagingv1

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions