Repository navigation
Conversation
Adds /internal/health and /internal/provision endpoints so nemoclaw-platform can provision NemoClaw containers using the same contract as paperclip-platform. On provision: rewrites openclaw.json to route inference through WOPR's gateway instead of NVIDIA's, enabling metered billing via platform-core credit ledger. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Dockerfile: change ENTRYPOINT from /bin/bash to /usr/local/bin/nemoclaw-start so the container actually runs the startup script instead of exiting immediately - nemoclaw-start.sh: run sidecar in foreground via exec (keeps container alive) with tail -f fallback if no sidecar present - sidecar.js: read PORT env var (set by fleet.ts to 3100) instead of WOPR_SIDECAR_PORT defaulting to 3001 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Opened against upstream by mistake — this is for our fork. |
This was referenced Nov 18, 2026
cv
added a commit
that referenced
this pull request
Nov 18, 2026
…red (#14583) Adds a troubleshooting entry for an agent that keeps its state and answers every request with `session_recovery_required`, and a limits row saying NemoClaw's invoke path can't send the acknowledgment. ## Problem When an agent keeps its state, Fabric's adapter keeps one native conversation. After an invocation that doesn't finish, such as a model timeout, every later invocation fails with `session_recovery_required` until a request carries `acknowledge_recovery: true`. NemoClaw's apply and its documented `fabric-agent-ctl invoke --input` command never send that field, so the agent stays unusable through NemoClaw. The documentation doesn't say how to continue. Fabric's OpenClaw adapter keeps its state once v1 pins a Fabric with cold resume (NVIDIA/NeMo-Fabric#612), which the next Fabric pin brings. ## Change - `docs/observability/troubleshooting.md`: what `session_recovery_required` means, that the runtime and native interfaces keep working, and how to continue: check what the unfinished turn could have changed, then send one request through `openshell sandbox exec … fabric-agent-ctl invoke --request -` with `"acknowledge_recovery": true`. - `docs/resources/limits.md`: a row under Agents and Integrations saying NemoClaw's invoke path can't send `acknowledge_recovery`, and native interfaces aren't affected. ## Beyond CI Live run on a managed Docker gateway (linux/arm64, OpenShell 0.1.8). The OpenClaw image and bundle came from a branch pinning Fabric `main` with NVIDIA/NeMo-Fabric#667 and #668, where NemoClaw sets `runtime.keep_state` for OpenClaw. - With `runtime.timeout_seconds: 30` and the model stub down, one invocation returned `timeout`. - With the stub healthy again, the next two `--input` invocations returned `session_recovery_required`. - The `--request -` command in the new entry succeeded, and later `--input` invocations succeeded. - While invocations were refused, the Control UI loaded and the Gateway's chat endpoint answered with the dashboard token. - With the same steps on the current v1 pin, where OpenClaw doesn't keep its state, the invocation after the timeout succeeded. A model error can also fail the whole runtime, which this entry doesn't cover: NVIDIA/NeMo-Fabric#670 for Fabric's side; NemoClaw's provider fix is in progress. Signed-off-by: Carlos Villela <cvillela@nvidia.com>
cv
added a commit
that referenced
this pull request
Nov 18, 2026
… web_fetch fixes (#14615) Pins Fabric to NVIDIA/NeMo-Fabric `release/0.7` at `56a4207b`. That commit has the OpenClaw adapter fixes NVIDIA/NeMo-Fabric#667 and #668, and #676, which lets runtimes start in OpenShell's Kubernetes sandboxes. OpenClaw now works with `anthropic` providers, and its `web_fetch` reaches hosts the sandbox's network policy allows. The v0.7.0 tag will follow from this branch. ## Problem - **#14529:** an OpenClaw route to an `anthropic` provider got `403 credential_placement_mismatch` from OpenShell. Fabric's OpenClaw adapter wrote `api: openai-completions` for every provider, so OpenClaw sent the key in `Authorization` instead of `x-api-key`. - **#14537:** OpenClaw's `web_fetch` refused every host in a sandbox. OpenShell's policy DNS answers every name from `198.18.0.0/15`, and OpenClaw refuses that range unless `tools.web.fetch.ssrfPolicy.allowRfc2544BenchmarkRange` is set. Fabric's adapter didn't accept that setting. - **Kubernetes:** Fabric's `main` since NVIDIA/NeMo-Fabric#629 couldn't start any runtime in OpenShell's Kubernetes sandboxes, because `HOME=/sandbox` is world-writable there (NVIDIA/NeMo-Fabric#675). #676 fixes that, so this pins `release/0.7` rather than an earlier `main` commit. Resolves #14529. Resolves #14537. Part of #13318. ## Change - **Pin:** Fabric `56a4207b` in `versions.json` (with the archive's SHA-256), the Cargo manifests and `Cargo.lock`. The documentation links move to the same revision, and every linked path exists there. - **Catalog:** `image/fabric/catalog.json` is regenerated. What changes for NemoClaw: - OpenClaw declares a model `api` (NVIDIA/NeMo-Fabric#667), so NemoClaw sends each provider's API, as it already does for Pi. #14529 needed no SDK change. - OpenClaw declares the two `tools.web.fetch.ssrfPolicy` range settings (NVIDIA/NeMo-Fabric#668). - OpenClaw accepts `runtime.keep_state` (NVIDIA/NeMo-Fabric#612), which NemoClaw sets, so OpenClaw keeps its native home in `/sandbox/artifacts/.fabric/state/nvidia.fabric.openclaw/<agent>`. Its dashboard token moves there too. - Deep Agents gains new fields, and the HCL schema gains Fabric's `runtime.response_limits` (`crates/fabric-provider/tests/schema.txt`). - **`fabric_config`:** it sets `tools.web.fetch.ssrfPolicy.allowRfc2544BenchmarkRange: true` for an adapter whose settings declare it, unless `harness.settings` sets it, the way it fills in `insecure_http_model_hosts`. OpenShell still decides each connection. `openclaw_fetches_hosts_that_policy_dns_answers` in `tests/fabric_compatibility.rs` failed before this change. - **Tests:** the SDK tests whose expectations the new descriptors change are updated: OpenClaw's model `api`, its kept-state token path, and its harness settings. The contract fixtures, the test image digest and the inference names derived from it are regenerated. - **Live case:** in `docker-openclaw-hermes-interfaces`, the OpenClaw agent's route now uses the existing `anthropic` provider, whose stub accepts the key only in `x-api-key`. No new case. - **Docs:** - The limits rows and the `inference.md` note for #14529 and #14537 are removed; the `session_recovery_required` row stays. - `state.md`, `interfaces.md` and `fabric-harnesses.md` describe OpenClaw's kept state and the fetch setting. - Release notes get three lines under "Changes Since v0.1.0-rc11". ## Beyond CI - On linux/arm64 with images built from this pin: - `cargo ci live-docker --hcl-cases docker-openclaw-hermes-interfaces` passed. The OpenClaw agent answered through the `anthropic` provider in Fabric invocations, in its terminal UI, and after the sandbox replacement. - `cargo ci live-kind --hcl-cases kind-kubernetes-development` passed. - I recomputed the archive's SHA-256 from codeload twice, with the same result. - Not verified: a live `web_fetch` run against an allowed host (#14537 marks it optional). --------- Signed-off-by: Carlos Villela <cvillela@nvidia.com>
cv
added a commit
that referenced
this pull request
Nov 19, 2026
…ession fix (#14656) Pins Fabric to NVIDIA/NeMo-Fabric `release/0.7` at `0dfdb254`, the merge of NVIDIA/NeMo-Fabric#685. OpenClaw agents, which NemoClaw runs with kept state, no longer fail on turns longer than about a minute or after a few minutes idle. ## Problem Since #14615, NemoClaw sets `runtime.keep_state` for OpenClaw. With kept state, Fabric's OpenClaw adapter keeps a Gateway WebSocket for native session checks, but read it only while a call waited for its response (NVIDIA/NeMo-Fabric#653). The Gateway kept sending events on it during a turn and while the runtime was idle, so the connection closed. The next session check failed with `invoke_failed` ("Cause: session_incompatible"), and Fabric marked the runtime `failed`. Qwen3-4B on vLLM takes about a minute per turn, so `docker-openclaw-vllm` and `docker-openclaw-vllm-shared` fail their reply and unchanged-plan assertions on every `v1` push. Part of #14630: the two GPU cases haven't run on this pin yet. ## Change - **Pin:** Fabric `0dfdb254` in `versions.json` (with the archive's SHA-256), the Cargo manifests and `Cargo.lock`. The documentation links move to the same revision, and every linked path exists there. - **What the pin brings:** `0dfdb254` has everything `56a4207b` had: NVIDIA/NeMo-Fabric#633, #652, #667, #668, and #676, which `release/0.7` carries as `b80becfc` with the same changes. It also brings: - #685, the session connection fix. - #672, so Fabric's packages and `nemo-fabric-core` report version 0.8.0. - #680 and #681, plugin support for OpenClaw and Hermes. - **Catalog:** `image/fabric/catalog.json` is regenerated. Only the OpenClaw and Hermes descriptors change: both declare plugins, and OpenClaw's `harness.settings.plugins.entries` becomes `plugins.bundled.entries` and `plugins.external.entries`. NemoClaw sets no plugin settings. The schema snapshots and contract fixtures regenerate unchanged. - **Tests:** the fixture image's digest in two cases and the inference names derived from it in `openshift-external-two-providers.tftest.hcl` move with the catalog. - **Release notes:** one line under "Changes Since v0.1.0-rc11". ## Beyond CI - On linux/arm64, the OpenClaw image built from this branch, running `fabric-agent-ctl serve` with `runtime.keep_state` against a model stub that streams its reply for a set time: | Turn | Result | |---|---| | 60 s reply, twice | succeeded (62 s each); `check` passed, runtime `active` | | 70 s reply, twice | succeeded (72 s, 71 s); `check` passed, runtime `active` | | 2 s reply after 200 s idle | succeeded; `check` passed, runtime `active` | With the image at `56a4207b`, the same 60 s, 70 s, and post-idle turns failed with `session_incompatible`. - The image's installed OpenClaw descriptor matches the bundled catalog. - I computed the archive's SHA-256 from codeload twice, with the same result. - Not verified yet: the GPU cases `docker-openclaw-vllm` and `docker-openclaw-vllm-shared` on this branch.
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.
Summary
ENTRYPOINT ["/bin/bash"]→ENTRYPOINT ["/usr/local/bin/nemoclaw-start"]— container was exiting immediately with code 0 because bash had no TTYexec(keeps container alive) instead ofnohupbackgroundPORTenv var (fleet.ts sets 3100) instead ofWOPR_SIDECAR_PORTdefaulting to 3001 — port mismatch caused health checks to failTest plan
/internal/healthreturns 200 after gateway starts/internal/provisionaccepts provision payload🤖 Generated with Claude Code