Skip to content

fix(fabric): check configurations at plan time with Fabric's compatibility check - #14601

Merged
jyaunches merged 9 commits into
v1from
fix/fabric-inspect-adapter-config
Nov 20, 2026
Merged

jyaunches merged 9 commits into
v1from
fix/fabric-inspect-adapter-config

Conversation

@kaofelix

@kaofelix kaofelix commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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 plan and then fail at apply when the image's adapter refused it, after apply had created or replaced the sandbox. Examples are a maxTokens on an adapter that takes no model sampling fields, and agent.tools.enabled on an adapter that doesn't accept tools.enabled. NemoClaw checked a few of Fabric's rules itself (interface_checks, schema_problems, and the sampling rule in fabric_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 v1 don't close issues; close it after merge.

Change

  • assess_fabric calls inspect_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) with diagnostics: true and reports each issue as an unsupported fabric_configuration check, 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::projection returns the configuration with a map from each generated Fabric path to the path the user wrote, such as models.default.max_tokens to the route's overrides.maxTokens. The map reaches the check through a new optional config_provenance_json attribute on the fabric_harnesses data source, because the check runs inside that provider. A field with no authored source is reported under the sandbox.
  • Removes interface_checks, schema_problems, OfflineSchemas, the sampling rule, and nemoclaw-fabric's jsonschema dependency. The base_url, api, and keep_state projection stays, since it shapes output and doesn't check.
  • Keeps the checks Fabric doesn't own: the image provides the selected adapter, and the filesystem policy grants the adapter's files.
  • One integration fixture authored an OpenClaw setting its descriptor doesn't declare, which plan now rejects; it uses a declared one.
  • Rewrites the troubleshooting, inference, interfaces, provider, and configuration docs to describe the plan-time rejection without listing fields, and adds a release note.

Behavior that differs from the copies:

  • Fabric stops at the first refused harness setting, so one plan can report fewer settings than the old check did.
  • An adapter whose schema neither declares interfaces nor closes the setting object no longer rejects them. The bundled adapters declare theirs closed.
  • Fabric's cross-setting rules now apply at plan, such as OpenClaw's dashboard port inside its 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

  • No live Docker or Kubernetes run. Nothing here shows that an agent that passes the plan check then starts; the check catches configurations the adapter declares it can't accept.

…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
@kaofelix

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Claude Code 2.1.327 Version field on session records to the cutoff 2026-11-18T13:10:31Z
Skills recorded none invoked The Skill tool is never called in the record; the create-pr SKILL.md was read as a file, see Instruction files
Instruction files partial AGENTS.md (project, injected); ~/.claude/CLAUDE.md and ~/.agents/AGENTS.md (injected); nemoclaw-contributor-create-pr SKILL.md (complete read); PULL_REQUEST_TEMPLATE.md and SESSION_REPORT_TEMPLATE.md (complete reads) WRITING.md (first 40 of 44 lines) and write-tests SKILL.md (first 80 of 87 lines) were truncated reads and aren't counted
Tool calls recorded Main session: Bash 138, bash 1 (rejected, no such tool); code-review subagent: Bash 5 Attempted calls, deduplicated by tool-use ID; the Bash wrapper hides the commands' nested processes, and the subagent's calls are not in the main total
Tokens recorded input: 27623828; cached input: 27097915; output: 86858 Final message.usage per response (stop reason recorded) to the cutoff: main session 27297690 / 26816948 / 82074 over 143 responses, plus the code-review subagent 326138 / 280967 / 4784 over 6 responses; input includes cache reads and writes
Session window recorded 2026-11-18T10:24:30Z to 2026-11-18T13:10:31Z; 2 h 46 min First to last record, including idle time
Compactions recorded 0 No compaction summary or boundary records to the cutoff
Models recorded claude-sonnet-5-5 Assistant records of the main session and the subagent; no changes
Reasoning levels unavailable - The record carries no reasoning-effort field, and current settings aren't evidence of past ones

@github-actions

Copy link
Copy Markdown
Contributor

kaofelix and others added 6 commits November 19, 2026 11:48
…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
@jyaunches

Copy link
Copy Markdown
Contributor

PASS — OpenClaw configuration preflight preserved the running agent at abf0fa64c27cdf75d18f94f79994cb11eb9a1248. Tested on a dedicated Linux AMD64 Brev CPU VM with Docker, OpenShell 0.1.9 and openai/gpt-4.1-mini through OpenRouter. The CLI came from the CI bundle built from the identical Git tree. I built the OpenClaw image from the PR head with its pinned Fabric revision.

Starting with a working deployment, I added only harness.settings.interfaces.api.port: 8642. The built image declares dashboard and terminal and disallows additional interface names. On the same state directory, plan exited 1 and direct apply exited 1. Both named sandbox assistant and reported spec.sandboxes[assistant].harness.settings.interfaces.api: is not declared by the adapter settings schema.

After each rejection, the sandbox container (304ce151949e), start time, restart count (0), Fabric runtime (runtime-1795203564332-63-2), Docker resource inventory, retained intent, and exported YAML matched the baseline. The original 36-byte marker kept SHA-256 74a685f0d85fc92862b8f225290b91ca8c07c5b692a91b34a902c90eea82da16. The same agent completed a fresh native write after each rejection and after restoring the baseline YAML. I verified each file’s bytes independently. The restored plan exited 0 with No resource changes planned.

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
@jyaunches
jyaunches merged commit fb01e79 into v1 Nov 20, 2026
80 of 81 checks passed
@jyaunches
jyaunches deleted the fix/fabric-inspect-adapter-config branch November 20, 2026 20:53
cv added a commit that referenced this pull request Nov 23, 2026
…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]>
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants