Repository navigation
refactor(config)!: key inference providers by name - #13703
Merged
Merged
Conversation
## Failure `spec.inferenceProviders` and `spec.sandboxes[].inferenceProviders` were lists whose entries each carried a `name`, while `harnesses`, `inferences`, `integrations`, and `services` are maps keyed by name. #13080 lists this as shape change 3. ## Decision - Both fields are maps from provider name to definition, and the definition has no `name`. Keys follow the rule names did, `^[a-z][a-z0-9-]{0,39}$`, now as `propertyNames`; like the other maps, an invalid key reports `propertyNames`. A repeated name is a duplicate YAML key. The parser still rejects a sandbox name that shadows a deployment name, and now says where: `spec.sandboxes[assistant].inferenceProviders[local]: sandbox provider names must not shadow deployment definitions`. - A route's inline `provider` has no key, so it keeps `name` in a separate `InlineInferenceProvider` type: the name plus the flattened `InferenceProvider` fields, with the same schema rules. Naming it after its route instead would change registration names and make inline providers in different inferences collide. - Registrations are keyed by the same names, so OpenTofu provider inputs and provider state don't change. Saved deployment intent holds the authored document, so intent saved with lists no longer loads; v1 does not carry earlier formats, and there is no alias. - Export writes providers in name order, like the other maps. - Schema errors name a valid provider key, as in `spec.inferenceProviders.local.endpoint`. Authoring addresses a provider as `/spec/inferenceProviders/<name>`, and onboarding's text map matches provider names with `*`. - Update the examples, fixtures, guides, and tests, and regenerate the schema and the reference. The hosted parity test converts the historical v0 provider list in memory, as it does `agents`; the raw exports stay unchanged. ## Validation - `config_schema::inference_providers_are_keyed_by_name_in_both_scopes` failed before the change with `configuration violates schema at spec.inferenceProviders (line 1, column 282): must be array`, and now passes. The onboarding label test failed on `/spec/inferenceProviders/nvidia-prod/api` until provider names map to `*`. - `cargo ci --full` passed: 1610 unit and 156 lifecycle tests, within the reported budgets. - `cargo run --locked -p nemoclaw-build -- schema --check` and `docs --check` passed, and `git diff --check` is clean. - Deferred to CI: the live suites and `fern check`; this host has no Docker or Node.js. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bring the branch up to date with v1 df88a97, including #13636, which renamed ServicePlacement.networkCidr to networkCIDR. Git merged every file without conflicts, and the regenerated schema and reference match the merged files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
#13703 merged into v1 as squash 279ccb5, so GitHub retargeted this branch to v1 and reported conflicts: the squash repeats the provider change this branch already holds as its own commits. Resolution: the squash's tree equals #13703's final head (25349c6) applied to its parent, so this merge is a three-way merge with 25349c6 as the base. The result differs from v1 by exactly this branch's change (199 files) and from the branch's previous head by exactly the three release-CI commits that v1 gained (#13706, #13711, #13715). Co-Authored-By: Claude Opus 5.5 <[email protected]>
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
crates/nemoclaw-e2e/tests/kubernetes_live.rs conflicted with #13703 (279ccb5), which keys `inferenceProviders` by name. This branch's document builder renames the provider `stub`; it now declares it as the key `stub:` in place of the list entry `- name: stub`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
Merging v1, which now keys inference providers by name (#13703), changed the schema's rules but left the committed `$id` digest from the previous revision, so `schema --check` failed in every Build and test job. Regenerating the schema updates only the `$id` line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
Bring in #13551's merge of v1 at 279ccb5 (08dfd80), which keys inferenceProviders by name (#13703). No conflicts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cv
pushed a commit
that referenced
this pull request
Oct 26, 2026
## Failure `spec.sandboxes` is a list of 1 to 32 entries with a `name` in each, unlike the name-keyed maps (#13080, shape change 3). It follows #13703, which keyed `inferenceProviders`. ## Decision ```mermaid flowchart LR subgraph Before A["sandboxes:<br/>- name: assistant<br/> harness: ..."] end subgraph After B["sandboxes:<br/> assistant:<br/> harness: ..."] end Before --> After After --> N["NamedSandbox:<br/>name + definition"] N --> K["Resource addresses and<br/>registration keys unchanged"] ``` - `sandboxes` maps a name to a definition, 1 to 32 entries; keys keep the old name rule as `propertyNames`. - The key is the only copy of the name: `Document::sandboxes()` returns `NamedSandbox`, which borrows the name with the definition. - OpenTofu inputs and state don't change. Saved intent in the list shape no longer loads. - Onboarding keeps the template's sandbox name and no longer asks for it. - The `multiple-sandboxes` contract fixture paired three sandboxes with each other's agents; it now matches the example. ## Validation - `sandboxes_are_keyed_by_name`, the onboarding boundary test and the label test failed before the change. - Compiling all 54 examples at #13703's commit and at this one gave byte-identical graphs, targets and discovery queries. - `cargo ci --full` passed on #13703's branch (1,674 unit, 156 lifecycle tests); after merging v1 `279ccb581`, `cargo ci test` passed (1,675 unit tests). The live suites and `fern check` run in CI. Part of #13080. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
cv
added a commit
that referenced
this pull request
Oct 26, 2026
Resolve the conflicts with #13705, which keyed sandboxes by name: - journey_definition.rs keeps v1's sandbox_path() in place of the fixed HARNESS path, and this branch's removal of the refusal to omit a supplied setting. - journey_resolution.rs keeps this branch's assertion that an omitted supplied endpoint is kept. Follow #13703 and #13705 in this branch's additions: defaults.yaml keys nvidia-prod and assistant, and the new tests use keyed sandbox and provider paths. Signed-off-by: Carlos Villela <[email protected]>
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
Bring in v1 at 9106480, which keys inferenceProviders and sandboxes by name (#13703, #13705). No conflicts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
Bring the branch up to date with v1 4f1c8db, which now keys inference providers (#13703) and sandboxes (#13705) by name. Git merged every file without conflicts. - config_schema.rs: the image-reference test set a sandbox image by list index; it now uses the openclaw example's `assistant` key. The regenerated schema and reference match the merged files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cv
added a commit
that referenced
this pull request
Nov 6, 2026
…ion (#14266) This release refuses deployment state written by another release, with a message that names both intent record versions, instead of calling the state corrupt. The intent record is now version 16, so every deployment created before this change is refused too, and its state is left unchanged. ## Problem #13703 and #13705 changed the saved intent record: `inferenceProviders` and `sandboxes` became maps. The record version stayed at 15, so the CLI parsed v0.1.0-rc9 state as current and failed with `deployment intent record is corrupt; retain it for recovery`. The [compatibility reference](docs/references/compatibility.md#deployment-state) promises that a release refuses older state and names the cause. Nothing caught a format change made without a version bump. ## Change - `RECORD_FORMAT` in `crates/nemoclaw-sdk/src/state/mod.rs` pairs the record version, now 16, with the SHA-256 fingerprint of the record's JSON Schema. `the_intent_record_format_changes_only_with_its_version` fails when the schema changes and prints the next version and fingerprint to set. The fingerprint leaves out descriptions, titles, examples, comments, and `x-` extensions, so editing a doc comment doesn't force a bump. Rules that live in parsing code rather than the schema, such as accepted harness kinds, aren't covered. - `Store::load` reads the version before the rest of the record, so the refusal doesn't depend on what an older record holds. A new error, `StateFromOtherRelease`, says: "deployment state was written by a different NemoClaw release (intent record version N; this release reads M); keep using the CLI bundle that created the deployment, or destroy it with that bundle and create a new deployment; state retained". It replaces the release-specific "predates openshell_inference" message. - `intent_from_another_release_is_refused_unchanged_whatever_it_holds` replaces the older-version test. It covers an older and a newer version, a record body this release can't read, the message, and unchanged bytes. - The compatibility reference quotes the new message, and the release notes say that existing deployments are refused. No state is migrated: v1 hasn't launched.
cv
added a commit
that referenced
this pull request
Nov 11, 2026
…ms (#14413) The release notes now list every user-visible change on `v1` since the `v0.1.0-rc9` tag, including the breaking ones, and four example pages drop claims that later changes made false. ## Problem `docs/about/release-notes.md` listed three breaking changes and none of the features, fixes, and onboarding changes that reached `v1` after `v0.1.0-rc9`; it didn't name the configuration shapes the parser now rejects or the intent record version `v0.1.0-rc9` writes. Some example claims went stale: - `examples/spark/README.md` said the pinned OpenShell has the Podman TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before OpenShell 0.1.0, and `v1` pins 0.1.7. - `examples/station/README.md` and `examples/gtc-dc/README.md` required exactly one visible GPU on the host; since #13929, `container.gpuDevices` lets a service on a host with more GPUs request one. - `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed that, and the pinned catalog's Deep Agents `reasoning_effort` accepts `none`. - The travel team cited #13313 for the booking key its service doesn't receive, but #13313 closed when `openshell_api` landed. ## Change - `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9", grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a later commit changed an earlier one, the entry describes the current code, and changes added and removed after the tag aren't listed: - Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186, #14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343. - Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912, #13964, #14388, #14390, #14397. - Gateways and Kubernetes: #13909, #13970, #13922 (an existing namespace, refused at plan by #13756, is now bound; cluster-wide reads dropped), #14014, #14169, #13921. - Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135, #13775, #13744, #13701. - Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228, #14233, #14334, #14336. - Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200, #13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813, #14246, and the pins in `versions.json` and `image/fabric/Dockerfile`. - Its breaking changes since the tag: - the intent record moving from 15, which `v0.1.0-rc9` writes, through 16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394); - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705); - a recipe `compatibility.gpu` outside every hardware profile (#13912); - model tuning the adapter doesn't accept (#14111), and Hermes's `max_tokens` losing its default (#14296); - `skills.paths` resolution (#14296); - endpoint and `networkCIDR` validation (#13847, #14081); - the HCL `gateway_values` attribute (#14014), and Kubernetes ownership receipts from before #13922 and #14014. The two earlier items stay, under their own heading. - `examples/spark/README.md` replaces the closed OpenShell#3427 blocker with the Podman and remote-model limits in `docs/resources/limits.md`. - `examples/station/README.md` and `examples/gtc-dc/README.md` require one GPU visible in the model container, and point to `container.gpuDevices` for a host with more. - `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the NeMo-Fabric#433 limitation, and the travel team's booking-key statements link #14417 instead of #13313. Not listed, because both changes landed after the tag: Deep Agents Code (#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the "Creating infrastructure state" progress step (#14169, #14248). Checked and left unchanged: the root `README.md`, `crates/nemoclaw-onboarding/README.md`, `crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the other example READMEs, and every example YAML header comment. The GPU autoscaling README and `load.sh` read the JSON fields `OperationResult` serializes, and ai-openshell/openshell#4287 is fixed only after the pinned 0.1.7. The two pre-tag release-note items still match the schema and SDK. `docs/README.md` is left to #14412, which retires the stale field reference snapshot it describes. Not verified: whether Hermes sends the booking key's placeholder to MCP servers; #14417 tracks the live check. ## Beyond CI Each relative link and anchor in the changed files resolves to an existing file and heading.
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.
Failure
inferenceProviders, at deployment and sandbox scope, are lists with anamein each entry, unlikeharnesses,inferences,integrationsandservices, which are keyed by name (#13080, shape change 3).Decision
flowchart LR subgraph Before A["inferenceProviders:<br/>- name: local<br/> provider: openai"] end subgraph After B["inferenceProviders:<br/> local:<br/> provider: openai"] end Before --> After After --> K["Registration keys:<br/>same names as before"]propertyNames, and a sandbox key that shadows a deployment key is still rejected.name(InlineInferenceProvider).InferenceProvider.name, and a new type forRoute.provider.Validation
inference_providers_are_keyed_by_name_in_both_scopesand the onboarding label test failed before the change.cargo ci --fullpassed with v1df88a9753merged in: 1,674 unit and 156 lifecycle tests. The live suites andfern checkrun in CI.Part of #13080.