Repository navigation
fix: rehearse agent access and diagnostics, and fix what it found - #13466
Merged
Merged
Conversation
Commands run in the sandbox now find fabric-agent-ctl on the default PATH. Removing an agent whose sandbox exited no longer runs stop in it, so destroy completes and the documented recovery works. The docs set Pi's input and cost, check result.status, and describe the logs and diagnostics that the rehearsal used.
cv
enabled auto-merge (squash)
October 19, 2026 10:38
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-13466.docs.buildwithfern.com/nemoclaw |
This was referenced Oct 19, 2026
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 #12642.
Failure
I rehearsed the documented access and diagnostics procedures as written: the first-deployment guide's steps 4 and 5, the request sections in
agents.md, and the troubleshooting and recovery procedures. I used the OpenShell CLI matchingversions.json(v0.1.4) on a NemoClaw-managed Docker gateway, with Hermes, Deep Agents and Pi against the hosted NVIDIA endpoint. The guide deploys OpenClaw, which can't start yet (#13372), so I swapped the harness. A managed gateway on loopback stands in for the guide's external one; access works the same way.What failed as written:
openshell sandbox exec … -- fabric-agent-ctl invokeexits 127,fabric-agent-ctl: command not found, because the tool is only at/opt/fabric/bin/fabric-agent-ctl, off the defaultPATH.sandbox unavailable: SANDBOX_PHASE_ERROR, and the recovery is whole-deployment destroy, then reapply. But destroy stopped at the agent withobservation query failed: removing an agent ranfabric-agent-ctl stopin the dead sandbox. That left the deployment in "unfinished destroy", which blocked every operation.pi_model_errorunless its model'sinputandcostwere set. Fabric's schema lists both as optional.status: succeededonly meansfabric-agent-ctlcompleted the call; Pi's failed run was inresult.status: failed.Decision
runtime-baselinks/usr/local/bin/fabric-agent-ctlto/opt/fabric/bin/fabric-agent-ctl, so commands in the sandbox find Fabric's sandbox host on the defaultPATH. Derived images inherit the link.stop_agenttreats a sandbox that has exited as already stopped, since its runtime went with it, so removing the agent succeeds and the sandbox's own deletion proceeds. A new fake-gateway test, which failed before the change, covers theErrorandCompletedphases.examples/fabric-pi.yamlsetinputandcostas well ascontext_window.agents.mdand the first-deployment guide say to checkresult.statusandresult.artifacts.openshell logs SANDBOX --source sandbox), files named inresult.artifacts, and Fabric's message indiagnostics/fabric-SANDBOX.json. The failure table coversSANDBOX_PHASE_ERROR.usage.mdnow covers any unusable runtime or exited sandbox, not only OpenClaw.OPENSHELL_VERSION=v0.1.4) and its authentication guide (openshell gateway addfor mTLS or OIDC), and the interfaces page links the same guide.limits.mdkeeps the OpenClaw walkthrough (OpenClaw does not start in OpenShell sandboxes with Fabric v0.5.0 #13372) and an external-gateway rehearsal (Qualify more platforms, placements, models, and integrations #12641).examples/fabric-pi.yamlfixture is regenerated.Validation
inputandcost.fabric-agent-ctlcommand works exactly as documented.openshell logs --source sandboxon a running and an exited sandbox;diagnostics/fabric-assistant.json(mode 600, holding Fabric's message);SANDBOX_PHASE_ERROR, the resumed destroy completed with the fix, reapply recovered, and the agent answered.cargo cipasses locally: 1,599 unit tests and 150 lifecycle tests.fern checkreports 0 errors.Not done here
terraform_data.agent_<name>rather than a readable name.inputandcost: the gap between Fabric's schema and Pi's behavior is Fabric's.examples/managed-hermes.yaml: pairs Hermes with an 8,192-token context, below Hermes's 64,000-token minimum.