Repository navigation
feat(provider): type runtime image, readiness, and capacity inputs - #12834
Merged
cv merged 1 commit intoOct 8, 2026
Merged
Conversation
nemoclaw_runtime_image, nemoclaw_service_readiness, and nemoclaw_service_capacity took SDK-compiled service specifications, so HCL authors could not check an image, wait for a container, or measure capacity without reproducing the SDK's internal JSON. The runtime image check takes the engine, the pinned image, its architecture, and the labels it must carry. Readiness takes the container's engine, name, and ID, and the contract it runs with: the spec of its vLLM, Ollama, or Ollama proxy runtime data source. Capacity takes an engine and the runtime contracts of the services on it. Generated graphs pass these values and reference the runtime contract data sources. Part of #12785.
cv
added a commit
that referenced
this pull request
Oct 8, 2026
…#12831) Part of #12785. Carries #12832 and #12834, which merged into this branch while the PRs were stacked. ## Failure Gateway resources and the service observation data sources took SDK-compiled `spec` strings. To declare a gateway, check a runtime image, wait for a service, or measure capacity in HCL, an author had to reproduce the SDK's internal JSON, including layout numbers that encode storage contract versions. Generated Docker gateway containers also carried an entrypoint, command and environment that only the SDK compiler could write. ## Decision - **`nemoclaw_managed_gateway` and `nemoclaw_gateway_storage`** take `name`, `compute_driver`, `engine`, `image`, `network_cidr` and `endpoint` as attributes. `owner` and `generation` are optional, computed and generated on create. The provider derives the internal layout. Docker gateway storage rejects `endpoint`, because its data does not depend on the listen port. The backend still builds the same internal specification, so container and volume labels are unchanged. The SDK reads the attributes back from OpenTofu state for bound gateways. - **`nemoclaw_gateway_runtime`** computes a Docker gateway container's `entrypoint`, `command` and `env` from `name`, `endpoint` and the storage's `data_path`. It shares one launch definition with the SDK compiler. Generated graphs take the launch from it. - **`nemoclaw_runtime_image`** takes `engine`, a digest-pinned `image`, `architecture` and optional `labels`. - **`nemoclaw_service_readiness`** takes the container's `engine`, `name` and `container_id`, and its `contract`: the `spec` of the vLLM, Ollama or Ollama proxy runtime data source the container runs with. - **`nemoclaw_service_capacity`** takes `contracts` instead of `specs` and rejects a contract listed twice. - The provider guide documents each input. `docs/limits.md` now lists only the Kubernetes types as taking a compiled `spec`. The merge from `v1` keeps #12842's removal of the `nemoclaw` provider's gateway settings. The authored HCL in the end-to-end tests uses an empty `provider "nemoclaw"` block. ## Validation - **Gateway resources:** a provider schema test checks their typed attributes. Attributes round-trip to the internal specification for both drivers, and invalid values are rejected. State bindings record typed settings, including the null endpoint of Docker gateway storage. - **End-to-end through pinned OpenTofu:** - The prerequisite protocol test writes the gateway in HCL. - A Docker gateway written in HCL plans its launch through `nemoclaw_gateway_runtime`. - The readiness and capacity tests use the typed inputs. - **After merging `v1`:** - `nemoclaw-sdk`, `nemoclaw-provider` and `nemoclaw-build` pass 776 tests. - The standalone OpenTofu tests (24), the production provider tests and the capacity test pass. - Workspace clippy at `-D warnings` and fmt are clean.
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 #12785. Stacked on #12832.
Failure
nemoclaw_runtime_image,nemoclaw_service_readinessandnemoclaw_service_capacitytook SDK-compiled service specifications. An HCL author could not check a runtime image, wait for a service container, or measure capacity without reproducing the SDK's internal JSON.Decision
nemoclaw_runtime_imagetakesengine,image(pinned by SHA-256 digest),architecture(amd64orarm64) and optionallabels, the labels the image must carry.image_idandallow_missingkeep their meaning.nemoclaw_service_readinesstakes the container'sengine,nameandcontainer_id, and itscontract: thespecoutput of thenemoclaw_vllm_runtime,nemoclaw_ollama_runtimeornemoclaw_ollama_proxy_runtimedata source the container runs with. The contract decides what readiness checks, including vLLM credential permissions when it enables authentication.nemoclaw_service_capacityreplacesspecswithcontracts, the runtime contracts of the services on the engine. A contract listed twice is rejected, replacing the old check for a repeated service name.Validation
spec.contractreferences.nemoclaw-sdk,nemoclaw-providerandnemoclaw-buildtests pass, with workspace clippy at-D warningsand fmt. GitHub CI runs the full suite.