Skip to content

fix(fabric): register workflow targets so plan checks workflow sandboxes - #14785

Merged
cv merged 5 commits into
v1from
fix/fabric-workflow-targets
Nov 23, 2026
Merged

cv merged 5 commits into
v1from
fix/fabric-workflow-targets

Conversation

@kaofelix

@kaofelix kaofelix commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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 chore(fabric): pin Fabric's v0.7.0 release tag #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 fix(fabric): check configurations at plan time with Fabric's compatibility check #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.

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.
@copy-pr-bot

copy-pr-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the v1 NemoClaw v1 branch label Nov 23, 2026
@kaofelix

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Claude Code 2.1.330 Session record version metadata
Skills recorded nemoclaw-contributor-create-pr (complete read) Shell reads in the record; write-tests was read only partially (80 of 87 lines), so it isn't counted
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and shell reads in the record
Tool calls recorded Bash: 95; Edit: 1; Write: 1; ToolSearch: 1 Assistant tool_use blocks to the cutoff, failed calls included; commands run inside Bash are not counted separately
Tokens recorded input: 14369388; cached input: 14177614; output: 43621 Final usage of 97 unique API responses to the cutoff, before PR publication; no subagents
Session window recorded 2026-11-23T15:50Z to 2026-11-23T16:13Z; 23 min First record to the cutoff, after the commit, idle time included
Compactions recorded 0 Complete record to the cutoff
Models recorded claude-opus-5-5 Assistant records; no changes
Reasoning levels recorded medium Effort recorded on each request; no changes

@github-actions

Copy link
Copy Markdown
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
kaofelix marked this pull request as ready for review November 23, 2026 16:45
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Selected hardware E2Es

Commit: d6882bce2c87f49805c8db8d3d2fcb2320d03163

Selected cases run automatically; results do not gate merging.

Shared code or test infrastructure changed.

  • dgx-station-openclaw-nemotron
  • docker-openclaw-hermes-ollama
  • docker-openclaw-llama-cpp
  • docker-openclaw-vllm
  • docker-openclaw-vllm-shared

cv added 2 commits November 23, 2026 12:36
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.
@cv
cv enabled auto-merge (squash) November 23, 2026 20:46
@cv
cv merged commit 1561cbe into v1 Nov 23, 2026
114 of 115 checks passed
@cv
cv deleted the fix/fabric-workflow-targets branch November 23, 2026 21:06
@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.

2 participants