Skip to content

feat(host-provider): read engine facts and hardware with data.host_engine - #13206

Merged
cv merged 3 commits into
v1from
feat/host-engine
Oct 15, 2026
Merged

cv merged 3 commits into
v1from
feat/host-engine

Conversation

@cv

@cv cv commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Part of #13148. Part of #13131.

Failure

Plans observed each container engine through two nemoclaw data sources: nemoclaw_engine_capabilities for version, platform, CPUs and memory, and nemoclaw_target_hardware for engine features and advertised GPUs. Both read the same engine /info, so each engine was queried twice per plan. They also kept the nemoclaw provider alive although they belong to no NemoClaw object.

Decision

  • New host provider, with no settings and no resources. It serves data.host_engine, which takes engine and returns engine_json (the engine facts), hardware_json (the passive hardware read), plus status and available.
  • One bounded /info read answers both observations: nemoclaw-discovery gains observe_host, which shares that read. observe_engine_facts and observe_hardware keep their meaning for onboarding.
  • status and available describe the engine facts; hardware_json carries its own status.
  • The SDK's discovery graph reads data.host_engine.current for the gateway engine and data.host_engine.target_N for service engines, taking engine_json or hardware_json. Fabric's platform inputs come from current.engine_json. Plan reports keep their engine and target_N observations.
  • host is declared in every compiled graph and shipped in the bundle. It is not one of the providers teardown sets destroy on, since it has no settings.
  • The nemoclaw provider no longer serves the two data sources; it now serves only nemoclaw_runtime_image.
  • Not yet decided: whether host_engine should export a ref that replaces plain engine strings. Nothing needs daemon identity across types yet, so it isn't added here.

Validation

  • The discovery contract test was rewritten first for host_engine: a reachable engine reports facts and hardware, and an unreachable one reports both as unknown. Its exact request count shows that one /info read now answers both observations.
  • Unit tests from the removed data sources move to host_engine: unknown inputs defer every output, an unreachable engine completes unknown observations without a provider error, and invalid values are never echoed. The gateway prerequisite tests stay with that data source.
  • The pinned discovery-graph fixtures now expect host_engine reads.
  • Schema snapshots: a new schema-host.txt; nemoclaw loses the two data sources.
  • cargo ci --full passes locally (137 contract and system tests); fern check passes.

cv added 3 commits October 14, 2026 15:38
Plans read external model catalogs through
data.nemoclaw_inference_capabilities although the read is advisory: it
feeds only the plan's unverified list and onboarding suggestions.

The catalog reader moves unchanged from nemoclaw-discovery into
nemoclaw_sdk::inference_discovery, which nemoclaw-discovery re-exports.
Plans call observe_endpoints beside observe_credentials and record each
read as endpoint_N, after computing deferrals so catalogs only leave
plans unverified. Discovery graphs drop catalog reads and the nemoclaw
provider stops serving the data source.
…gine

Plans read each engine through nemoclaw_engine_capabilities and
nemoclaw_target_hardware, two reads of the same /info that belong to no
NemoClaw object.

A new host provider, with no settings, serves data.host_engine: one
bounded /info read returning engine_json and hardware_json. Discovery
graphs read it for the gateway and service engines, plan reports keep
their engine and target observations, and the nemoclaw provider stops
serving the two data sources.
# Conflicts:
#	crates/nemoclaw-provider/src/lib.rs
#	crates/nemoclaw-provider/src/provider.rs
#	crates/nemoclaw-provider/tests/schema.txt
#	crates/nemoclaw-sdk/src/deployment/plan.rs
#	crates/nemoclaw-sdk/src/deployment/reporting.rs
#	crates/nemoclaw-sdk/src/deployment/tests.rs
#	crates/nemoclaw-sdk/tests/discovery_graph.rs
#	crates/nemoclaw-sdk/tests/fixtures/discovery_graph/openclaw.json
#	docs/provider.md
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 4fe7431 into v1 Oct 15, 2026
@cv
cv deleted the feat/host-engine branch October 15, 2026 02:48
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: architecture Architecture, design debt, major refactors, or maintainability platform: container Affects Docker, containerd, Podman, or images refactor PR restructures code without intended behavior change labels Oct 15, 2026
@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: architecture Architecture, design debt, major refactors, or maintainability 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