Repository navigation
refactor(sdk): read model catalogs in the SDK, outside provider graphs - #13205
Merged
Merged
Conversation
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
enabled auto-merge (squash)
October 14, 2026 22:47
Contributor
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.
This was referenced Oct 15, 2026
Closed
8 tasks
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
Plans read each external inference endpoint's model catalog through
data.nemoclaw_inference_capabilities, one of the four data sources keeping thenemoclawprovider alive. The read is advisory: it only feeds the plan'sunverifiedlist 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 innemoclaw-discovery, which onboarding calls directly.Decision
observe_endpoint, with its bounds, no redirects, credential handling and pagination) moves unchanged fromnemoclaw-discoveryintonemoclaw_sdk::inference_discovery.nemoclaw-discoveryre-exports it, so onboarding is unchanged.observe_endpoints(document, secrets)reads every selected external endpoint together, each within its own five-second bound, and names the resultsendpoint_0,endpoint_1, ... in the order plans always used.observe_credentialsand record each read as a discovery target and observation. Catalog observations only feedunverified, as before, and they're added afterdeferredis computed, so they can't change which deferral path a plan takes.nemoclawprovider no longer servesnemoclaw_inference_capabilities.plan_queriesstill lists catalog queries for onboarding.reqwestandfutures-utilas regular dependencies;nemoclaw-discoverydropsreqwestandurl.Validation
nemoclaw-discoverydidn't already cover: read-only access, distinguishing required authentication from unreachable, redirects and bounds, pagination, credential headers, and no credential echo.optional_catalog_failures_preserve_complete_unchanged_plans_and_typed_uncertaintynow exercises the in-process path through full plans.data nemoclaw_inference_capabilitiesremoved.cargo ci --fullpasses locally (1536 unit tests; 137 contract and system tests, three fewer after removing the catalog contract file).fern checkpasses.