Repository navigation
fix(fabric): check configurations at plan time with Fabric's compatibility check - #14601
Conversation
…ility check Plan asks Fabric's `inspect_adapter_config` whether the image's adapter accepts each sandbox's configuration, and fails before any resource changes when it doesn't. Each rejection names the field the user wrote: the SDK records where every generated Fabric field was authored and passes that map to the `fabric_harnesses` data source as `config_provenance_json`. Removes NemoClaw's copies of Fabric's rules: the interface and schema checks in `nemoclaw-fabric` and the model sampling check in `fabric_config`. Pins Fabric at 5245a4ce, which changes `inspect_adapter_config` to take descriptors as values, and regenerates the bundled catalog. Workflows whose target the catalog doesn't describe are still left to Fabric at start (#14600). Part of #14148
Authoring session — opening
|
…ter-config # Conflicts: # Cargo.lock # crates/fabric-provider/Cargo.toml # crates/nemoclaw-e2e/cases/kubernetes-gateway-driver-mismatch.yaml # crates/nemoclaw-e2e/cases/openshift-external-two-providers.yaml # crates/nemoclaw-e2e/tests/integration/hcl/tests/openshift-external-two-providers.tftest.hcl # crates/nemoclaw-fabric/Cargo.toml # crates/nemoclaw-sdk/Cargo.toml # docs/agents-inference/agents.md # docs/agents-inference/interfaces.md # docs/build-deploy/state.md # image/fabric/catalog.json # internal-docs/contributing/integration-tests.md # internal-docs/contributing/live-tests.md # internal-docs/design/fabric-management.md # versions.json
…ter-config # Conflicts: # crates/nemoclaw-fabric/Cargo.toml # docs/about/release-notes.md # docs/agents-inference/inference.md # docs/agents-inference/interfaces.md # docs/observability/troubleshooting.md # docs/references/provider.md
…g' into fix/fabric-inspect-adapter-config # Conflicts: # crates/nemoclaw-fabric/Cargo.toml
|
PASS — OpenClaw configuration preflight preserved the running agent at Starting with a working deployment, I added only After each rejection, the sandbox container ( One additional post-plan read-and-copy probe produced an empty copy of a nonempty file. The direct native writes above passed. Conversation continuity was outside this check. |
…ter-config # Conflicts: # crates/nemoclaw-fabric/Cargo.toml
…xes (#14785) <!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. --> <!-- SPDX-License-Identifier: Apache-2.0 --> Agent images now register the Fabric workflow targets they install, so `nemoclaw plan` checks a sandbox with a `workflow` against Fabric's compatibility check like any other sandbox, and fails naming `workflow.target_id` when the image doesn't register the selected target. Onboarding offers NOOA's targets from the bundled catalog. ## Problem `image/fabric/catalog.py` wrote `"targets": []` into every image catalog and into the bundled one. Since #14601, plan checks each sandbox with Fabric's `inspect_adapter_config`, which needs the workflow target's descriptor, so plan skipped the whole check for any sandbox with a `workflow`. For example, `maxTokens` on a route of `examples/fabric-nooa.yaml` passed plan although NOOA's adapter doesn't accept `max_tokens`, and so did an unregistered `workflow.target_id`. Both failed only inside the sandbox, after apply had created resources. Onboarding never offered a workflow target, because no real catalog listed one. Resolves #14600. Pull requests into `v1` don't close issues; close it by hand after merge. ## Change - A harness stage declares the workflow targets it installs under each adapter in `/opt/nemoclaw/adapters.json`, as `"targets": {"<target_id>": {}}`, or `{"descriptor": "<path>"}` for a target that Fabric's catalog package doesn't publish. `catalog.py` records each target's descriptor from Fabric's `get_target_descriptor`, or from that file. It rejects a target whose descriptor belongs to another adapter, and a target declared under two adapters. - The `generic` stage takes its targets from a new `targets` attribute of the harness in `docker-bake.hcl`. Only `nooa` sets it, to `nvidia.nooa.arc-solver` and `nvidia.nooa.coding-agent`, the two targets Fabric's catalog lists. - `catalog.py` takes `--target ADAPTER_ID=TARGET_ID` for the bundled snapshot, and `image/fabric/catalog.json` is regenerated with NOOA's two targets. Its adapter records are unchanged. The inference names derived from the catalog move, so `openshift-external-two-providers.tftest.hcl` names the new ones, as in #14714. - Plan looks up `workflow.target_id` among the targets the image's catalog registers: - Registered: Fabric checks the configuration against the target's descriptor, as for any other sandbox. Fabric also decides whether the target suits the selected adapter, for example refusing NOOA's target on the bench adapter. - Not registered: the check is unsupported on the authored `workflow.target_id`, and plan fails. - The catalog registers no targets: the check is unknown, plan reports the image's Fabric capabilities as unverified, and Fabric checks the configuration when the agent starts. - The release note entry from #14601, the provider reference, the image maintenance and design docs, and the add-harness skill describe the new behavior and declaration. Judgment calls, for reviewers to push back on: - **Target record shape.** A target is recorded like an adapter: Fabric's descriptor with NemoClaw's provenance note, `[{"source": "nemo-fabric-adapter-catalog"}]`. Plan and catalog parsing now read the `descriptor` as `AdapterTargetDescriptor` instead of the whole record as `ResolvedAdapterTargetDescriptor`. Fabric's resolved form needs discovery provenance with a `path` and `root`, which `get_target_descriptor` doesn't return, and plan never reads it. The alternative, writing `installed_package` provenance with the wheel's install path, would record a path the descriptor wasn't read from. - **Explicit declaration.** Each stage lists its targets, as it lists its adapters. The alternative is for `catalog.py` to register every `*.fabric-target.json` the image's packages install under `/opt/fabric/share/nemo-fabric/adapters`. That registers new targets without a NemoClaw change, but it makes the catalog depend on what the wheels happen to install, unlike adapters. - **Catalogs without targets.** A catalog that registers no targets gives an unknown check rather than a failure. Images built before this change have such a catalog and run `nvidia.nooa.coding-agent`, so failing their plans would reject deployments that work. The cost is that a current image whose stage forgot to declare its targets also passes as unverified. The alternatives were to fail in every case, or to raise the catalog's `schema_version` so plan can tell an old catalog from one with no targets; plan rejects a catalog with any other `schema_version`, so older images would lose every plan-time check. An image's catalog holds one adapter, so this is also per adapter. - **What plan decides.** Plan answers only whether the image registers the selected target ID; Fabric decides everything else about the target. Plan doesn't filter targets by adapter or read the adapter's `target_types`, because `inspect_adapter_config` already reports both on `workflow.target_id`. The cost is that an adapter that takes no workflows, set with a `workflow` on an image that registers no targets, is reported as unverified rather than failing plan, and Fabric refuses it when the agent starts. Left out: for an image whose catalog predates targets, plan still checks nothing else in a workflow sandbox's configuration. It could run Fabric's check without the workflow and keep only the issues outside it. ## Beyond CI - CI builds and qualifies the `nooa` image, but nothing parses its catalog label the way plan does, and no live suite deploys NOOA. Locally, the `generic` stage's declaration command, run with the `nooa` and an empty target list, produced declarations from which `catalog.py` recorded both targets and none. The NOOA image wasn't built locally, and no NOOA agent was started with a registered target. --------- Co-authored-by: Carlos Villela <[email protected]>
Plan now asks Fabric's own compatibility check whether the image's adapter accepts each sandbox's configuration, and fails before any resource changes when it doesn't, naming the field the user wrote. NemoClaw's copies of Fabric's rules are removed.
Problem
A sandbox's Fabric configuration could pass
nemoclaw planand then fail at apply when the image's adapter refused it, after apply had created or replaced the sandbox. Examples are amaxTokenson an adapter that takes no model sampling fields, andagent.tools.enabledon an adapter that doesn't accepttools.enabled. NemoClaw checked a few of Fabric's rules itself (interface_checks,schema_problems, and the sampling rule infabric_config.rs), so every rule it didn't copy surfaced only when a user hit it, and each copy could drift from Fabric.Resolves #14148. PRs into
v1don't close issues; close it after merge.Change
assess_fabriccallsinspect_adapter_config(its descriptor-as-value form from feat!: inspect adapter compatibility from in-memory metadata NeMo-Fabric#641, which the current Fabric pin includes) withdiagnostics: trueand reports each issue as an unsupportedfabric_configurationcheck, which the existing discovery postcondition turns into a plan failure naming the sandbox. A descriptor or configuration that doesn't parse fails the same way.fabric_config::projectionreturns the configuration with a map from each generated Fabric path to the path the user wrote, such asmodels.default.max_tokensto the route'soverrides.maxTokens. The map reaches the check through a new optionalconfig_provenance_jsonattribute on thefabric_harnessesdata source, because the check runs inside that provider. A field with no authored source is reported under the sandbox.interface_checks,schema_problems,OfflineSchemas, the sampling rule, andnemoclaw-fabric'sjsonschemadependency. Thebase_url,api, andkeep_stateprojection stays, since it shapes output and doesn't check.Behavior that differs from the copies:
port_range.Left out: a workflow needs its target's descriptor, and the catalog lists none, so a sandbox with a workflow is not checked at plan and Fabric checks it when the agent starts (#14600).
Beyond CI