Skip to content

refactor(sdk): read model catalogs in the SDK, outside provider graphs - #13205

Merged
cv merged 1 commit into
v1from
feat/host-provider
Oct 14, 2026
Merged

cv merged 1 commit into
v1from
feat/host-provider

Conversation

@cv

@cv cv commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Part of #13148. Part of #13131.

Failure

Plans read each external inference endpoint's model catalog through data.nemoclaw_inference_capabilities, one of the four data sources keeping the nemoclaw provider alive. The read is advisory: it only feeds the plan's unverified list and onboarding's model suggestions, and never gates a resource. Routing it through OpenTofu added a provider type, a graph read and a contract surface for something no resource depends on. The HTTP reader already lived in nemoclaw-discovery, which onboarding calls directly.

Decision

  • The catalog reader (observe_endpoint, with its bounds, no redirects, credential handling and pagination) moves unchanged from nemoclaw-discovery into nemoclaw_sdk::inference_discovery. nemoclaw-discovery re-exports it, so onboarding is unchanged.
  • The new observe_endpoints(document, secrets) reads every selected external endpoint together, each within its own five-second bound, and names the results endpoint_0, endpoint_1, ... in the order plans always used.
  • Plans call it beside observe_credentials and record each read as a discovery target and observation. Catalog observations only feed unverified, as before, and they're added after deferred is computed, so they can't change which deferral path a plan takes.
  • Discovery graphs no longer include catalog reads, and the nemoclaw provider no longer serves nemoclaw_inference_capabilities. plan_queries still lists catalog queries for onboarding.
  • The SDK gains reqwest and futures-util as regular dependencies; nemoclaw-discovery drops reqwest and url.

Validation

  • The pinned discovery-graph fixture was changed first to expect no catalog read, and the test failed before the change.
  • New tests check that catalog observations name their endpoint and leave plans only unverified, and that an invalid request is unknown without opening a connection. That last case was the one contract case the moved HTTP fixture tests in nemoclaw-discovery didn't already cover: read-only access, distinguishing required authentication from unreachable, redirects and bounds, pagination, credential headers, and no credential echo.
  • The e2e test optional_catalog_failures_preserve_complete_unchanged_plans_and_typed_uncertainty now exercises the in-process path through full plans.
  • Schema snapshot: only data nemoclaw_inference_capabilities removed.
  • cargo ci --full passes locally (1536 unit tests; 137 contract and system tests, three fewer after removing the catalog contract file). fern check passes.

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.
@cv
cv enabled auto-merge (squash) October 14, 2026 22:47
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 33c3f11 into v1 Oct 14, 2026
@cv
cv deleted the feat/host-provider branch October 14, 2026 22:53
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 area: providers Inference provider integrations and provider behavior 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 area: providers Inference provider integrations and provider behavior 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