Repository navigation
Conversation
An x-nemoclaw-error message appeared only when the failing keyword sat directly on the annotated node. Rules built from nested properties, items, allOf, or then steps therefore reported a bare keyword such as `not`, `minLength`, or a raw pattern: the managed Kubernetes endpoint and local-field rule, the Podman engine rule, the Kubernetes environment naming rule, and the root Kubernetes services rule never showed their messages. A oneOf of single-key objects would also have reported every error as "must match one allowed object shape". - Diagnostics use the nearest annotated ancestor, bounded by the definition root and the selected variant, and a missing field uses its own annotation. - A union variant is selected by its kind or management constant, by the one key of a closed single-key object, or by a hardware profile. When no key selects a variant, the error lists the declared keys and never the input's. - Partial-document assessment and editor field lookup select variants the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
…eRef
One Credential type held both bearer values and local file paths: the
env value of `tls.*`, `kubeconfig`, and `image.metadata` is a file path,
while the gateway, inference provider, and web-search credentials hold
the secret itself. The schema and reference could not say which.
- SecretRef: external gateway credential, inference provider credential,
and web-search integration credential.
- FileRef: TLS CA, certificate, and key; managed Kubernetes kubeconfig;
sandbox image metadata.
Authored YAML stays `{env: NAME}`. Each reference keeps the reserved-name
rules and now reports a message naming its kind. The `file` and
`kubernetesSecret` forms from #13080 are left out: reading secrets from
files changes the credential model, and OpenShell cannot bind a Secret
by reference yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Hai Nguyen <haingu@nvidia.com>
Three inputs had to agree to select a backend: `runtime.provider`, whether `gateway.kubernetes` was present, and the flat `engine`, `image`, `imagePullPolicy`, and `networkCIDR` fields. Root-level conditionals enforced their pairing, editors offered Docker's socket on a Kubernetes gateway, and moving a document between backends failed at several unrelated locations. `spec.gateway.target` now holds exactly one key: - Managed `docker`: `endpoint`, `engine`, `imagePullPolicy` (IfNotPresent or Never), and `networkCidr`, each defaulted as before. - Managed `podman`: the same fields; `engine` is required and `imagePullPolicy` also accepts Always. - Managed `kubernetes`: `distribution` (kubernetes or openshift), a required HTTPS loopback `endpoint`, and the existing cluster fields. The openshift distribution reads the namespace's SCC UID range, records that identity, passes it as Helm security-context values, and binds the compute driver as openshift. - External `docker` or `podman` take an optional image-inspection `engine`; external `kubernetes` takes no settings, because the gateway reports only the kubernetes driver. Plan still checks the key against the reported driver. `gateway.runtime.provider` is removed, the managed `endpoint` moves into its target, and `networkCIDR` is spelled `networkCidr` like `ServicePlacement`. `gateway.image` leaves the authored contract: its only valid value was the SDK's digest, so defaulted and exported documents broke after each OpenShell update. The SDK now resolves the pinned image internally; the resolved image stays bound in provider state, so a pin change still needs the original bundle or a separate deployment. Compiled output is unchanged: the internal gateway settings keep their serialized layout, so typed state rows, service specifications, spec labels, Helm targets, and digests of equivalent documents match the earlier shape byte for byte across every example. Fields at their earlier locations report where they moved. Onboarding asks for the target key where it asked for the runtime, with the same choices first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
`spec.sandboxes` and both `inferenceProviders` collections were arrays, unlike `harnesses`, `inferences`, `integrations`, and `services`. Rust had to enforce name uniqueness, onboarding addressed the sandbox as `/spec/sandboxes/0`, overlays would patch by index, and authored order leaked into export and status output while identity ignored it. - `spec.sandboxes`, `spec.inferenceProviders`, and `spec.sandboxes.<name>.inferenceProviders` are maps. The key replaces `name` and keeps its pattern; a deployment holds 1 to 32 sandboxes. - Inline route providers keep a required `name`, because they have no key and their name feeds the provider registration. - Keys order nothing: export, apply health, and diagnostics list sandboxes and providers by name. Schema diagnostics show a key only when it is a valid name and point at the rejected key's own line. - Onboarding addresses the sole sandbox and its providers by key, asks no sandbox-name question, rejects a template whose sandbox key is not a name, and never prints such a key. OpenTofu addresses, provider registration keys, Fabric data-source numbering, and every other compiled identity match the list form for the same names across all examples. Document digests change. The OpenShell contract fixtures for multiple-sandboxes and tavily-web-search are regenerated: the fixture check numbered sandboxes in authored order while compile numbers them by name, so two checked-in fixtures carried swapped adapter bindings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
The schema's apiVersion and $id stayed the same across revisions whose rules differed, so a document or retained state from an earlier v1 revision failed at its first moved field, or loaded as "corrupt", with no sign that the whole document had to be re-authored. - `nemoclaw.nvidia.com/v1alpha2` names the configuration API, the schema file `schemas/nemoclaw-v1alpha2.schema.json`, and its `$id`, all from one constant. `schema --check` fails while another versioned schema file remains. - `Document::parse` rejects a v1alpha1 document before schema validation and points to the migration guide. - Retained intent is format version 8. A record from an earlier version or holding a v1alpha1 document fails before typed parsing with a message to retain it and use the earlier NemoClaw to destroy it, or to deploy separately. Its bytes stay untouched. - The contributor guide states the rule: a revision that rejects or reinterprets a document the previous revision accepted changes the API version; adding optional fields does not. - The migration guide describes keeping or exporting the earlier document, a field map from v1alpha1, and deploying the re-authored document separately. There is no conversion or adoption. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
Adapt the managed-model context advisory added upstream to keyed sandboxes, and keep the v1alpha2 release note ahead of the updatePolicy change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
#13080 asks for a test that retargets every example to every backend and compares the required edits with a documented list. The test rewrites the gateway of all 44 examples for managed and external Docker, Podman, and Kubernetes targets, applies the documented edit for each schema or parser violation until the document parses, and requires the applied edits to match a rule table derived from the example's features. The documented edits are: for Kubernetes, an explicit sandbox image reference and image metadata, and external endpoints instead of managed services; for Docker or Podman, no image metadata; and explicit placement for managed services unless the gateway is managed Docker. docs/usage.md lists them. The test checks authoring portability only: a live deployment cannot change its target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
- Reject provider keys and inline provider names outside the name pattern again, and truncate registration-key prefixes by character, so a Rust-built document with a non-ASCII provider name returns an error instead of panicking. - Report an intent record without an integer version as corrupt, and point the earlier-state message to the migration guide. - Test that a bound managed gateway refuses another target key, distribution, network, context, namespace, or endpoint, and accepts a pull-policy change. - Retarget examples to managed OpenShift as well, and require an explicit engine, not placement, for an Ollama proxy. - Share one rule for which map keys are names between schema diagnostics and onboarding, and one masking and JSON-pointer helper set in authoring. - Carry removed-field hints as ordered pairs, and correct the release notes, migration example, and troubleshooting paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-13121.docs.buildwithfern.com/nemoclaw |
cv
enabled auto-merge (squash)
October 14, 2026 02:44
The retargeting test looked up `examples/managed-ollama.yaml` by string, but Windows renders the relative path with `\`, so the lookup failed and the Windows test job stopped. Compare paths instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
Bring in cv's update of the branch from v1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Hai Nguyen <haingu@nvidia.com>
auto-merge was automatically disabled
October 14, 2026 16:08
Pull request was closed
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.
Summary
Implements the five accepted shape changes from #13080, with the decisions cv's review asked for, and versions the result as
nemoclaw.nvidia.com/v1alpha2.A document now selects its backend with one
spec.gateway.targetkey, names sandboxes and inference providers by map key, and no longer carries the SDK's gateway image digest.Compiled resources and provider attributes for equivalent documents are unchanged; only a discovery postcondition message now names
spec.gateway.target.A v1alpha1 document, or state written for v1alpha1, fails without touching resources and points to
docs/migration.md; there is no conversion.Why
The v1alpha1 schema assumed a local Docker engine.
Kubernetes and OpenShift worked by switching Docker fields off through root-level conditionals, so a document could not be re-authored for another backend without edits at several unrelated locations, editors offered Docker's socket on a Kubernetes gateway, and every OpenShell update invalidated documents that contained the gateway digest.
Once deployments exist, changing this shape strands their retained intent, so the shape changes land together now.
Changes
Before (v1alpha1):
After (v1alpha2):
fix(config)). Anx-nemoclaw-errormessage now comes from the nearest annotated ancestor of the failing rule, and aoneOfof single-key objects selects the variant the input names. Before this, the root Kubernetes message was never shown, and the managed Kubernetes, Podman engine, and Kubernetes environment messages appeared only for a missing endpoint, a missing engine, or a duplicate name; a taggedtargetwould have reported every error as "must match one allowed object shape". Partial-document assessment and editor field lookup select variants the same way. Generic messages for item, entry, and name bounds and for scalaroneOfchoices are also clearer.SecretRefandFileRef. The gateway, inference provider, and web-search credentials areSecretRef; TLS files, the kubeconfig, and image metadata areFileRef. YAML stays{env: NAME}.target. Managed:docker(endpoint,engine,imagePullPolicyIfNotPresent or Never,networkCidr),podman(the same,enginerequired,imagePullPolicyalso Always), orkubernetes(distribution, required HTTPS loopbackendpoint, and the existing cluster fields). External:endpoint,credential, andtlsstay on the gateway;targetisdockerorpodmanwith an optional image-inspectionengine, orkubernetes: {}. Omittingtargetselects Docker.gateway.runtime.providerandgateway.imageare removed,networkCIDRis spellednetworkCidr, and a field at its earlier location reports where it moved.sandboxesandinferenceProvidersat deployment and sandbox scope. The key replacesnameand keeps its pattern; a deployment holds 1 to 32 sandboxes. Inline route providers keepname, because they have no key and their name feeds the provider registration.v1alpha2. One constant names the API,schemas/nemoclaw-v1alpha2.schema.json, and its$id. Retained intent is format version 8.docs/usage.md#choose-the-gateway-target.Decisions on the review
imagePullPolicystay bound identity. The guarantee is re-authoring a document for another backend as a separate deployment, not migrating a live one;docs/usage.md#choose-the-gateway-targetsays so, and the retargeting test checks authoring only.targetsandboxes.<name>.kubernetesandresourcesstill need an owning issue (#12036 was closed as not planned). Each owner must choose between per-sandbox overrides undertargetand documented Rust-only checks.spec.services, and a Podman gateway can still consume a Docker model service over SSH with explicit placement. Whether a Kubernetes gateway may use an SSH-placed service is left to #12732.v1before this branch, addedServiceContainer.memoryLimitGiBand serviceupdatePolicy; this PR does not move them.spec.policies/spec.images, sandbox templates, and the sandboxupdatePolicyrow stay open.endpointmoved into its target: Docker and Podman keep an optional HTTP loopback endpoint with a default; Kubernetes requireshttps://127.0.0.1:PORT. An external gateway keepsendpointat the gateway level. A per-command port-forward is not implemented.172.30.N.0/24from the UID, port 17681). Bounding service limits by observed GPU memory is not implemented either; it needs its own decision because validation would then depend on the host.v1alpha2. A v1alpha1 document fails before schema validation, and v7 state or a v1alpha1 intent fails before typed parsing, both without touching resources or bytes. There is no conversion;docs/migration.md#re-author-a-v1alpha1-documentgives the export-and-re-author procedure and a field map. For #12645, the contributor guide states the bump rule: a revision that rejects or reinterprets a previously accepted document changes the API version; adding optional fields does not.gateway.runtime.providerdistribution: openshiftchangeskubernetestarget: the SDK reads the namespace's SCC UID range (waiting up to 30 s) and supplemental groups, records that identity, passes it as Helm security-context values, and binds the compute driver asopenshift. The document, not a cluster observation, selects this behavior, so plan output does not depend on what a cluster reports (point 6).targetkubernetestakes nodistribution, because OpenShift gateways report thekubernetesdriver and nothing could check it.SecretRef.fileandkubernetesSecretenv, so adding a form later is additive.sandboxesnamewith the same pattern. Nothing is ordinal: export, apply health, and diagnostics now use name order instead of authored order (compile, discovery, and the digest already did). Onboarding addresses the sole sandbox by key and asks no sandbox-name question; a seed without exactly one validly keyed sandbox now stops onboarding before the first question. The 32-sandbox limit and the refusal to remove or rename an applied sandbox are unchanged; recording why the limit is 32 stays open.gateway.imageoverridebound storage specification differs from retained intentinstead of failing to load intent. Repository overrides for the gateway, chart, and component images are additive and left to a follow-up.networkCIDRvs.networkCidrnetworkCidr. Internal provider attributes keepnetwork_cidr.oneOfmetadata.uidcase, other defectsCompatibility
This is breaking for every v1 document and deployment:
configuration uses nemoclaw.nvidia.com/v1alpha1; this NemoClaw reads nemoclaw.nvidia.com/v1alpha2; re-author it as described in docs/migration.md.deployment state was written by an earlier NemoClaw for nemoclaw.nvidia.com/v1alpha1; …. Nothing is adopted, replaced, or deleted.Runtime,Credential,Gateway::runtime()/runtime_mut(), the flatManagedGatewayfields,ExternalGateway.runtime/engine,Sandbox.name, andInferenceProvider.nameare removed.ManagedTarget/ExternalTargetundertarget,Gateway::compute_driver(),SecretRef, andFileRefreplace them.Spec.sandboxesand bothinference_providerscollections are name-keyedBTreeMaps, route providers areInlineInferenceProvider,managed::Spec.gatewayismanaged::GatewaySettings, and sandbox lookups such asDocument::sandbox_harnesstake the sandbox name.Document::parserejects duplicate keys; aDocumentdeserialized directly keeps the last one.Internal provider specifications keep their serialized layout, so provider state attributes, spec labels, and
reference.jsonare unchanged.Validation
cargo cionfe83ba3bd(linux_arm64, Rust 1.98.1 container): every default step passed.test: 1,525 passed, 184 skipped, within the 45 s budget.lifecycle: 136 passed. On this shared host, the lifecycle step ran as one partition and reported budget overruns (442.8 s wall against 300 s per partition;nemoclaw-provider::contract117.5 s against 110 s;openshell-provider::contract196.7 s against 190 s); those budgets apply on CI runners.x-nemoclaw-errormessages, target shapes and defaults, moved-field hints, keyed-map diagnostics, the v1alpha1 document and state errors, and the provider-name panic found in review.keyed_sandboxes_and_providers_keep_the_resource_identities_of_named_entriespins addresses, registration keys, and Fabric numbering recorded from the list form. The bound-gateway tests refuse another target key, distribution, network, context, namespace, or endpoint, and accept a pull-policy change. Uncommitted review probes also compiled all 44 examples, the fixtures, and stress documents in both shapes: compiled targets, typed state rows, service specifications, spec labels, Helm targets, and registration keys matched; only export and health order and diagnostic paths differed.examples/andschemas/.Review Guide
fbc7f08a6), credential split, target, keyed maps, v1alpha2, the merge ofv1, the retargeting test, and review fixes. Eachrefactor(config)!commit converts examples, tests, and docs together and regenerates the schema and reference.533c6e2edhas no net diff;v1carries the same fix.crates/openshell-provider/tests/contract/fixtures/multiple-sandboxes.tf.jsonandtavily-web-search.tf.jsonchange because the fixture generator now binds each sandbox's runtime in name order, as compile already did; onv1it used authored order and swapped two adapters' bindings.Implements the shape-change part of #13080, which stays open: the additive fields, defaults, and defects still need owning issues.
🤖 Generated with Claude Code