Skip to content

feat(host-provider): check images with data.host_image and drop the runtime-spec label - #13223

Merged
cv merged 1 commit into
v1from
feat/host-image
Oct 15, 2026
Merged

cv merged 1 commit into
v1from
feat/host-image

Conversation

@cv

@cv cv commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Part of #13148. Part of #13131.

Failure

Managed vLLM and Ollama images were checked by nemoclaw_runtime_image, the last type the nemoclaw provider served. It mixed a generic check (an image's platform, architecture and required labels) with NemoClaw-specific knowledge: it compared an org.nemoclaw.runtime.spec label 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-build set it on every image and verified it after loading.

Decision

  • New data.host_image in the host provider. It takes an engine, a digest-pinned image, an architecture, optional labels, image_id and allow_missing, and knows nothing about NemoClaw runtimes. A mismatch now names the platform or the label at fault, never the image's value.
  • The two reads (before and after acquisition), their order, and the gate that holds every other change until the acquired image passes are unchanged. Only the type name and provider change.
  • The runtime-spec label is removed everywhere: the provider check, the SDK's required labels, nemoclaw-build's --label and post-load verification, the nemoclaw-runtime constant, and the observation's required_version field. 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.md describes it.
  • The nemoclaw provider now serves no types. Removing it is the next step for host provider, runtime-image split, and model catalog in the SDK #13148.

Validation

  • The contract test was changed first to host_image: an image carrying only the backend label passes, and changing that label fails with the new summary.
  • Unit tests drop the runtime-spec variants and check that the failing label is named without echoing its value.
  • Three e2e scenarios used the runtime-spec label to simulate an incompatible image. They now mismatch org.nemoclaw.backend and still check that a pulled incompatible image fails before storage, a present one fails before any change, and teardown works with an incompatible image.
  • Schema snapshot: nemoclaw_runtime_image becomes host_image, with the same attributes.
  • cargo ci passes locally; fern check passes. One lifecycle test (multiple_providers) failed once with OpenTofu reporting cached providers missing during export. It passed three times alone and in the rerun of cargo ci lifecycle, so it looks like a flake under parallel load.

…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
cv enabled auto-merge (squash) October 15, 2026 03:30
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 3cb1865 into v1 Oct 15, 2026
@cv
cv deleted the feat/host-image branch October 15, 2026 03:38
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.
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution platform: container Affects Docker, containerd, Podman, or images refactor PR restructures code without intended behavior change labels Oct 15, 2026
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]>
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Packages, images, registries, installers, or distribution platform: container Affects Docker, containerd, Podman, or images refactor PR restructures code without intended behavior change v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants