Skip to content

build(fabric): pin Fabric v0.6.0-rc.1 for runtime health checks - #13946

Merged
cv merged 2 commits into
v1from
build/fabric-0.6
Oct 29, 2026
Merged

cv merged 2 commits into
v1from
build/fabric-0.6

Conversation

@cv

@cv cv commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Failure

NemoClaw's Fabric pin, 67acf1cf on Fabric main, predates Fabric's runtime health checks: fabric-agent-ctl check (NVIDIA/NeMo-Fabric#466) and the adapters' live, active, and ready checks (NVIDIA/NeMo-Fabric#467, #469, #470, #500, #501, #505-#514). Agent images built from it reject check with invalid_request, so nothing can ask Fabric whether an agent's runtime still runs. #13870 needs that.

Decision

Pin Fabric v0.6.0-rc.1 (7aedb66b), the first release candidate with the checks, and use what it publishes without patching it.

  • Pins: the image's FABRIC_REVISION and FABRIC_SHA256, and nemo-fabric-core in three crates. Cargo.lock adds hmac 0.12.1, a new nemo-fabric-core dependency.
  • Catalog: regenerated from a Hermes image built at the new pin. Seven descriptors gain capabilities.metadata.health_checks: Claude, Codex, Deep Agents, Hermes, OpenClaw, OpenCode, and Pi. Claude, Codex, Deep Agents, and OpenClaw also gain settings: Claude effort, Codex max and ultra, Deep Agents reasoning effort, and OpenClaw timeouts. The other four descriptors and all provenance are unchanged.
  • Fabric configuration schema: unchanged; the provider schema snapshot still matches. nemo-fabric-core only adds check schemas.
  • OpenClaw: v0.6.0-rc.1 still supports OpenClaw 2026.9.4, so the OpenClaw image pin stays.
  • Docs: links to Fabric sources follow the new revision. Every linked path and the Codex #authentication heading exist there, and the adapters' state paths that docs/state.md describes are unchanged.

release/0.6 already has one commit after v0.6.0-rc.1, NeMo Relay 0.11 (NVIDIA/NeMo-Fabric#523). Moving to v0.6.0 when it's released is a separate pin change.

Validation

On a DGX Spark (GB10, Linux ARM64):

  • cargo ci: fmt, clippy, build, 1,737 unit tests, schema, bundle, and 156 lifecycle tests pass.
  • cargo ci live-docker: all 9 tests pass.
  • The Hermes image builds at the new pin and passes cargo images qualify. Deployed with managed vLLM serving nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4, fabric-agent-ctl check passes for the server and for the runtime at --live, --active, and --ready, and an invocation that calls a tool succeeds.

Deferred to CI: building and qualifying the other agent images, on both platforms. Not run: cargo ci live-kind and AMD64.

@cv

cv commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.4.0 Session metadata and pi --version
Skills recorded test-driven-development (complete read); add-fabric-harness (complete read); nemoclaw-contributor-create-pr (complete read) Skill reads to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read) Startup injection and reads to cutoff
Tool calls partial typescript: 282 Counted to 2026-10-29T01:14Z; the typescript tool's nested host calls are not recorded separately
Session window recorded 2026-10-28T17:24Z to 2026-10-29T01:14Z; 7 h 50 min First event to cutoff, including idle time and earlier deployment work in the same session
Compactions recorded 0 Complete record to cutoff
Models recorded azure/anthropic/claude-opus-5-5 Model change events; no changes
Reasoning levels recorded high Thinking-level events; no changes

@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit a554fcb into v1 Oct 29, 2026
56 checks passed
@cv
cv deleted the build/fabric-0.6 branch October 29, 2026 03:08
cv added a commit that referenced this pull request Oct 29, 2026
Fixes #13870 on `v1`; close it by hand after merge, since PRs into `v1`
don't close issues. Stacked on #13946, which pins the Fabric release
that adds `fabric-agent-ctl check`.

## Failure

After apply starts an agent, NemoClaw never looks at its runtime again.
When a runtime stops while its sandbox keeps running, plan and apply
report no changes, and invoking the agent fails with
`runtime_unavailable`. That happens after a gateway restart, a host
reboot, or a runtime stopped inside the sandbox. The only recovery was a
new sandbox, which deletes its files and conversation history (#13870).

Separately, any in-place update of a `fabric_agent` started a second
runtime beside the running one. Examples are a newer image catalog for
the same harness, or rotated gateway credentials.

## Decision

Refresh asks Fabric whether the recorded runtime still runs, and apply
starts a stopped runtime again in the same sandbox.

- **Check:** reading a `fabric_agent` runs `fabric-agent-ctl check
--agent NAME --runtime-id ID`, at Fabric's default `live` level. It
sends no prompt and makes no model request, and records the result in a
new computed `running` attribute.
- **Stopped:** Fabric no longer has the runtime (`runtime_unavailable`),
the check `failed`, the bridge doesn't answer (`host_unavailable`), or
the sandbox isn't `Ready`.
- **Running:** the check passed, or gave no evidence either way: an
adapter without health checks (`unsupported`), or a probe that couldn't
finish (`unknown`). Treating those as stopped would restart runtimes on
transient probe errors.
- **Refresh fails:** Fabric refuses the check, for example with
`wrong_agent`, or its reply is cut off. Nothing changes. Destroy doesn't
check.
- **Restart:** `running` uses `rerun_when_stopped`, the rule managed
gateways already use. A stopped runtime plans an in-place update of the
agent with a new `runtime_id`, and the plan says `agent runtime is not
running`. Apply stops the recorded runtime in Fabric, where an
already-gone runtime counts as stopped, then starts another in the same
sandbox.
- **Other updates:** `ensure` leaves a running runtime alone.
- **Fake gateway:** it emulates `check` the way Fabric `v0.6.0-rc.1`
reports it.
- **Docs:** the "Fabric reports no runtime status" limits
(NVIDIA/NeMo-Fabric#420) and the #13870 limit are gone. `usage.md`,
`troubleshooting.md`, `agents.md` and `provider.md` describe the
restart, and the bridge-command table adds `check`.

Three tests encoded the old rule that reading an agent runs nothing in
its sandbox:
- A failing exec, or a check reply that is cut off, now fails plan and
export, and changes nothing (`deployment.rs` and the provider contract
test).
- A refused operation may run `check`, but never start, stop, or invoke
(`multi_agent.rs`).

**Remaining limit:** Fabric `v0.6.0-rc.1` reports a harness whose
process exited as `unknown` with `probe_error`, not `failed`, so such a
runtime is still found only at its next invocation. I observed this on
Hermes by killing its adapter process and reported it in
NVIDIA/NeMo-Fabric#298. `docs/limits.md` lists it.

## Validation

I wrote each new test first and saw it fail:
- **Provider tests:** they also showed the second runtime an in-place
update started.
- **Plan-reason unit test.**
- **Fabric lifecycle test:** the plan reported no changes for a stopped
runtime.
- **Docker live dummy-agent test, on #13946's branch:** after a gateway
restart the dummy's sandbox was `Ready`, and plan reported no changes.

On a DGX Spark (GB10, Linux ARM64), with this branch:

- `cargo ci`: fmt, clippy, build, 1,740 unit tests, schema, bundle, and
157 lifecycle tests pass.
- `cargo ci live-docker`: all 9 tests pass. In the dummy-agent test,
after a gateway restart, plan updates only the agent with `agent runtime
is not running`, apply starts a new runtime that answers, a file written
before the restart is still in the sandbox, and a further apply changes
nothing.
- **Hermes with managed vLLM serving
`nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4`:**
- **Plan and apply:** after stopping the runtime through Fabric, plan
showed `update agent runtime/assistant` with `agent runtime is not
running`, and apply restarted it in the same sandbox.
- **After apply:** a file written before the stop remained, `check
--ready` passed, invocations succeeded, and the next plan had no
changes. The new runtime's reply included the conversation from before
the restart, so Hermes keeps its history.
- **After a real gateway restart:** the same plan and apply restarted
the runtime in place, and the file remained.
- **Unexplained failures:** twice, the first invocation through my test
script after a restart reported `failed`. The script didn't keep
Fabric's error. Seven direct invocations in the same sequences
succeeded.
- **Gateway restarts on the Spark:** in 6 of 7 restarts the sandbox came
back `Ready`. Once it failed to start (`StartFailed`), and plan replaced
it through the existing `sandbox exited` path, losing its files; this
change can't keep them then. Tracked in #13953.

Not run: `cargo ci live-kind` and AMD64.
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch labels Oct 29, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants