Repository navigation
refactor(fabric): leave configuration checks to Fabric - #13326
Merged
Merged
Conversation
NemoClaw planned every agent configuration against the image's adapter descriptors with a Fabric function from an unmerged change. Fabric now checks configurations itself, inside the sandbox when the agent is configured. The SDK's compatibility report keeps the revision, adapter, and filesystem checks, with fabric_adapter replacing fabric_plan.
cv
enabled auto-merge (squash)
October 16, 2026 08:08
Contributor
gaveezy
added a commit
that referenced
this pull request
Oct 18, 2026
v1 moved from ef3115d to 7d7772e (#13326 to #13411). Conflicts: - `deployment_journey`'s count of single-sandbox examples: v1 added eight and this branch adds two, so the count is 40. - The configuration reference's inference provider table: v1's `api` description, this branch's `credential` and `endpoint` descriptions. `schema --check` reports both generated files current. Two tests from this branch read a sandbox's grants by name. #13384 made `policy.managed` an unlabeled list, so they now find the inference grant by its `name`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cv
added a commit
that referenced
this pull request
Oct 18, 2026
… Fabric (#13433) Closes #12016. ## Failure Downstream blueprints extend NemoClaw agent images: the VSS blueprint, for example, derives from one pinned by digest and adds skills, a domain CLI and workspace files. Nothing stated what such a derived image must keep. Trying it on current `v1` showed: - **A conforming derived image works:** labels carry over through `FROM`. - **A missing catalog label fails at plan time with a misleading message:** "Harness unavailable: The image declares no runtime for this adapter", then advice about `spec.gateway.engine`. - **A different Fabric revision in the image's catalog passes silently.** NemoClaw compared revisions, but the result, "unknown", was reported nowhere. - **An image from an older base fails at apply** with "sandbox unavailable: SANDBOX_PHASE_ERROR, reason unknown, exit code 1". OpenShell's supervisor log shows the cause: the image's launch command exited. An image from before the `fabric-agent-ctl` move lacks that command. ## Decision - **Fabric compatibility stays with Fabric.** NemoClaw no longer compares the image's Fabric revision with the release's. That comparison was NemoClaw judging another component, and it produced only a silent "unknown". The image's own `fabric-agent-ctl` validates the agent configuration and reports interface or validation errors when the agent starts (#13379, #13326). - **NemoClaw keeps checking its own contract,** with clearer messages: - **Missing catalog label:** "Harness unavailable" now names `io.nemoclaw.fabric.catalog` and the rule that a derived image keeps its base image's labels. The local-engine postcondition says the same. - **The adapter and the platform:** checked as before. - **Unexplained sandbox exits** now point to OpenShell's own log: "`openshell logs SANDBOX --source sandbox` shows why its process exited". Recognized OpenShell reasons keep their specific guidance. - **Docs:** a new [derived agent images](docs/derived-images.md) page: - deriving by digest; - what to keep: the catalog label, `/opt/fabric` with `fabric-agent-ctl`, UID and GID 10001, and the platform; - using added skills and tools; - rebuilding on upgrade; - which failures appear at plan time and which at apply. The compatibility, provider and build pages link to it. - **Base image publication** depends on releases (#12638). Until then, the page says to build the bases and push them to your own registry. ## Validation - **New tests**, each written before its change: - the missing-label message; - an unexplained sandbox exit pointing to `openshell logs`. - **Updated tests:** - a different Fabric revision now assesses as supported, with no `fabric_contract` check; - the prebuilt-images test allows exactly one build, the derived reference image. - **Live Docker:** the lifecycle test now runs an image derived from the reference image, with one added executable, and runs that executable inside the deployed sandbox. All 9 live Docker tests pass locally. - **By hand, with `nemoclaw plan` and `apply`:** a conforming derived image plans; a stale-revision image plans; a no-label image fails naming the label; a pre-`fabric-agent-ctl` image fails at apply, and its sandbox log shows why. - `cargo ci` passes locally: 1,600 unit tests and 149 lifecycle tests. The docs check reports 0 errors.
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.
Closes #13319. Part of #13318.
Failure
NemoClaw checked every agent configuration at plan time by running Fabric's planner against the image's adapter descriptors (
resolve_run_plan_from_descriptors). That function came from an unmerged Fabric change (NVIDIA/NeMo-Fabric#318) and doesn't exist in Fabric v0.5.0. The only way to plan against an image's descriptors with v0.5.0 is to write them to temporary files fordiscovery.local_paths, a workaround for work that belongs to Fabric.Decision
Fabric checks configurations itself, inside the sandbox, when the agent is configured.
fabric_agentno longer rejects, at plan time, a configuration its harness wouldn't accept. It still rejects one that doesn't deserialize as Fabric's ownFabricConfigtype, naming the field but not the value.fabric_contract, unknown when it doesn't);fabric_adapter, which replacesfabric_plan);plan_configuration,configuration_rejectionandFabricPlanningError.fabric_compatibility.rs.FabricConfig.A configuration the harness rejects now fails during apply rather than plan; for example, asking Pi to append system instructions. The live suites cover Fabric's rejection in a sandbox.
This still uses the current Fabric pin; the move to v0.5.0 follows in later PRs under #13318.
Validation
supported, with nofabric_plancheck.cargo cipasses locally: 1529 unit tests and 146 lifecycle tests.