Repository navigation
feat(host-provider): check images with data.host_image and drop the runtime-spec label - #13223
Merged
Merged
Conversation
…untime-spec label nemoclaw_runtime_image mixed a generic image check with a NemoClaw runtime-spec label that the SDK already required among the image's labels, and that nemoclaw-build set and verified on every image. data.host_image in the host provider checks an image's platform, architecture, and required labels without knowing NemoClaw runtimes, and names the failing label. Generated graphs keep the same reads and gate. The runtime-spec label is removed from the provider, the SDK, nemoclaw-build, and nemoclaw-runtime; the runtime's own contract validation still rejects an image from another revision when it starts.
cv
enabled auto-merge (squash)
October 15, 2026 03:30
Contributor
This was referenced Oct 15, 2026
cv
added a commit
that referenced
this pull request
Oct 15, 2026
Closes #13148. Part of #13131. ## Failure After #13223, the `nemoclaw` provider served no types. Its types had moved to the `openshell`, `vllm`, `ollama` and `host` providers, or into the SDK. Yet every generated graph still declared it, the bundle shipped its binary, and teardown set `destroy` on it. ## Decision - Remove `NemoClawProvider` and its `terraform-provider-nemoclaw` binary. The `nemoclaw-provider` crate stays as the library behind the `vllm`, `ollama` and `host` binaries and the `openshell` provider's gateway installation types. - Generated graphs no longer declare `nemoclaw`, the bundle no longer ships it, and teardown sets `destroy` only on `openshell`, `fabric`, `vllm` and `ollama` (`host` has no settings). - `TofuWorkspace::new(bundle)` installs the bundle's providers. Contract tests that need a fixture provider under the `nemoclaw` name use `TofuWorkspace::with_fixture`. - The unit test of the provider's `destroy` setting now runs against `ServiceProvider`, which has the same setting. The `nemoclaw` schema snapshot and its "no type served by two providers" check go with the provider. A misplaced doc comment on `ServiceProvider`, from #13206, is fixed. - No state record version bump: old state can mention the provider only for data sources, which earlier renames handled without one. - Docs: the provider catalog lists `host` instead of `nemoclaw`, and the design docs credit the providers that now own each role. With this, #13148 is complete: the catalog moved to the SDK (#13205), engine and image reads moved to the `host` provider (#13206, #13223), and the `nemoclaw` provider is gone. ## Validation - SDK tests assert that compiled and teardown graphs no longer declare `nemoclaw`. - `cargo ci` passes locally (1537 unit tests; 137 lifecycle tests). The first run caught an e2e test that set `destroy` on an undeclared `nemoclaw` provider block, which made OpenTofu look for `hashicorp/nemoclaw`; the test now uses only declared providers. - `fern check` passes.
gaveezy
added a commit
that referenced
this pull request
Oct 19, 2026
PR-6 merged v1 up to #13411. Three v1 changes move code this branch builds on: - #13224 removed the `nemoclaw` provider, which served this branch's cluster model types. They become `openshell_kubernetes_service` and `openshell_kubernetes_service_storage`, served by the openshell provider beside the Kubernetes gateway installation types: two more `INSTALLATION_TYPES` entries, and `cluster_services::definitions()` in `all_definitions()`. Their contract tests move to `openshell-provider::contract` with the Kubernetes gateway tests, their schema to the openshell snapshot, and the docs name the new types. - #13286 plans and applies each deployment as one OpenTofu root. The cluster image preflight moves from the removed runtime stage into `Deployment::run`, before compilation. #13286 also removed the "unfinished Kubernetes platform apply" rule, so this branch's exception to it (`revises_only_model_workloads`), its test, and its usage.md paragraph go too. The compile test now checks that the apply-time gateway read, which every object waits on, waits on the cluster service, instead of checking that agents compile into a separate graph. - #13184 added `Definition::derived`: a computed attribute kept out of backend rows. This branch's `derived` is an optional input checked against the spec and kept in the row, so ownership checks still see `owner` and `generation`. It is renamed `derived_input`. Smaller follow-ups: - #13093 added `ServiceDefinition::Container`; the cluster matches cover it. The cluster service is no longer a `runtime_process` kind: that flag now also selects Docker readiness and compute, which decode a Docker spec. Its only other readers handle the cluster kind first. - #13223 dropped the `org.nemoclaw.runtime.spec` label everywhere; the cluster image check no longer requires it. - #13369 removed `model_metadata` from OpenClaw routes, since Fabric v0.5.0's adapter rejects it; the cluster fixtures and docs drop it. The remaining conflicts keep both sides. `openshell-provider::contract`'s summed budget rises from 105 to 130 s, keeping v1's margin: the 8 moved cluster model tests add 23.2 s in a local linux_arm64 run (slowest 3.9 s, within the 6 s limit), about 17 s at CI speed. `nemoclaw-provider::contract` keeps its v1 budget; this branch's earlier raise to 150 s went with the tests. Validation on linux_arm64: the `cargo ci` fmt, clippy, test, schema, bundle and lifecycle steps pass (161 lifecycle tests, among them the 8 cluster model contract tests), as does `nemoclaw-build docs --check`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #13148. Part of #13131.
Failure
Managed vLLM and Ollama images were checked by
nemoclaw_runtime_image, the last type thenemoclawprovider served. It mixed a generic check (an image's platform, architecture and required labels) with NemoClaw-specific knowledge: it compared anorg.nemoclaw.runtime.speclabel against a version constant compiled into the provider. That label was already one of the labels the SDK requires from each image, so the provider was checking it twice.nemoclaw-buildset it on every image and verified it after loading.Decision
data.host_imagein thehostprovider. It takes an engine, a digest-pinned image, an architecture, optionallabels,image_idandallow_missing, and knows nothing about NemoClaw runtimes. A mismatch now names the platform or the label at fault, never the image's value.nemoclaw-build's--labeland post-load verification, thenemoclaw-runtimeconstant, and the observation'srequired_versionfield. An image built by a different NemoClaw revision is still caught, by the runtime's own contract validation when it starts, but only after the deployment has created the service's storage and network. We accepted that trade-off for less code;docs/build.mddescribes it.nemoclawprovider now serves no types. Removing it is the next step for host provider, runtime-image split, and model catalog in the SDK #13148.Validation
host_image: an image carrying only the backend label passes, and changing that label fails with the new summary.org.nemoclaw.backendand still check that a pulled incompatible image fails before storage, a present one fails before any change, and teardown works with an incompatible image.nemoclaw_runtime_imagebecomeshost_image, with the same attributes.cargo cipasses locally;fern checkpasses. One lifecycle test (multiple_providers) failed once with OpenTofu reporting cached providers missing during export. It passed three times alone and in the rerun ofcargo ci lifecycle, so it looks like a flake under parallel load.