Repository navigation
fix(fabric): register workflow targets so plan checks workflow sandboxes - #14785
Merged
Merged
Conversation
Agent images now declare the Fabric workflow targets they install, and catalog.py records their descriptors from Fabric's adapter catalog package. The bundled catalog lists NOOA's arc-solver and coding-agent targets. Plan checks a sandbox with a workflow against its target's descriptor, and fails on workflow.target_id when the image doesn't register the target. A catalog that registers no targets, as in images built before this change, leaves the workflow to Fabric when the agent starts. Resolves #14600.
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Collaborator
Author
Authoring session — opening
|
Contributor
Decide whether a catalog predates workflow targets per adapter, reject a workflow on an adapter that takes no workflow targets, and reject a target that two adapters declare.
Plan only looks up whether the image registers the selected target ID. Fabric's compatibility check already refuses a target of another adapter and a workflow on an adapter that declares no workflow target type, so plan no longer repeats either rule.
kaofelix
marked this pull request as ready for review
November 23, 2026 16:45
Contributor
Selected hardware E2EsCommit: Selected cases run automatically; results do not gate merging. Shared code or test infrastructure changed.
|
The rc11 notes described plan's workflow-target check, which rc11 didn't ship; they keep their original text. The new behavior is listed under breaking changes since rc12, as rc11 listed the plan-time Fabric check: a document that planned before can now fail plan. catalog.py's snapshot now always takes the targets, so the installed catalog passes its declarations explicitly instead of snapshot inferring them from the adapters' type. The output is unchanged.
dbeb88f made snapshot's targets required, which broke the catalog contract tests that call it with only adapter IDs. A snapshot without targets lists none again; the installed catalog still passes its declarations explicitly.
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.
Agent images now register the Fabric workflow targets they install, so
nemoclaw planchecks a sandbox with aworkflowagainst Fabric's compatibility check like any other sandbox, and fails namingworkflow.target_idwhen the image doesn't register the selected target. Onboarding offers NOOA's targets from the bundled catalog.Problem
image/fabric/catalog.pywrote"targets": []into every image catalog and into the bundled one. Since #14601, plan checks each sandbox with Fabric'sinspect_adapter_config, which needs the workflow target's descriptor, so plan skipped the whole check for any sandbox with aworkflow. For example,maxTokenson a route ofexamples/fabric-nooa.yamlpassed plan although NOOA's adapter doesn't acceptmax_tokens, and so did an unregisteredworkflow.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
v1don't close issues; close it by hand after merge.Change
/opt/nemoclaw/adapters.json, as"targets": {"<target_id>": {}}, or{"descriptor": "<path>"}for a target that Fabric's catalog package doesn't publish.catalog.pyrecords each target's descriptor from Fabric'sget_target_descriptor, or from that file. It rejects a target whose descriptor belongs to another adapter, and a target declared under two adapters.genericstage takes its targets from a newtargetsattribute of the harness indocker-bake.hcl. Onlynooasets it, tonvidia.nooa.arc-solverandnvidia.nooa.coding-agent, the two targets Fabric's catalog lists.catalog.pytakes--target ADAPTER_ID=TARGET_IDfor the bundled snapshot, andimage/fabric/catalog.jsonis regenerated with NOOA's two targets. Its adapter records are unchanged. The inference names derived from the catalog move, soopenshift-external-two-providers.tftest.hclnames the new ones, as in chore(fabric): pin Fabric's v0.7.0 release tag #14714.workflow.target_idamong the targets the image's catalog registers:workflow.target_id, and plan fails.Judgment calls, for reviewers to push back on:
[{"source": "nemo-fabric-adapter-catalog"}]. Plan and catalog parsing now read thedescriptorasAdapterTargetDescriptorinstead of the whole record asResolvedAdapterTargetDescriptor. Fabric's resolved form needs discovery provenance with apathandroot, whichget_target_descriptordoesn't return, and plan never reads it. The alternative, writinginstalled_packageprovenance with the wheel's install path, would record a path the descriptor wasn't read from.catalog.pyto register every*.fabric-target.jsonthe 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.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'sschema_versionso plan can tell an old catalog from one with no targets; plan rejects a catalog with any otherschema_version, so older images would lose every plan-time check. An image's catalog holds one adapter, so this is also per adapter.target_types, becauseinspect_adapter_configalready reports both onworkflow.target_id. The cost is that an adapter that takes no workflows, set with aworkflowon 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
nooaimage, but nothing parses its catalog label the way plan does, and no live suite deploys NOOA. Locally, thegenericstage's declaration command, run with thenooaand an empty target list, produced declarations from whichcatalog.pyrecorded both targets and none. The NOOA image wasn't built locally, and no NOOA agent was started with a registered target.