Conversation
…into fix/gateway-lifecycle-recovery
…into fix/gateway-lifecycle-recovery
# Conflicts: # bin/lib/onboard.js # test/e2e-gateway-isolation.sh
…into fix/gateway-lifecycle-recovery
# Conflicts: # test/e2e-gateway-isolation.sh
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe changes introduce gateway health checking and sandbox-to-gateway reconciliation logic in the NemoClaw CLI tooling. When connecting or querying sandbox status, the system now probes live OpenShell state, detects reconciliation issues, and attempts runtime recovery before hard-failing. Core library exports expand, and test coverage validates lifecycle messaging and recovery flows. Changes
Sequence Diagram(s)sequenceDiagram
actor User as User/CLI
participant NemoClaw as nemoclaw.js
participant OpenShell as OpenShell CLI
participant Registry as Local Registry
User->>NemoClaw: status/connect
rect rgba(100, 150, 200, 0.5)
Note over NemoClaw,OpenShell: Sandbox/Gateway Reconciliation
NemoClaw->>OpenShell: openshell sandbox get
OpenShell-->>NemoClaw: sandbox state
NemoClaw->>OpenShell: openshell status
OpenShell-->>NemoClaw: gateway status
NemoClaw->>OpenShell: openshell gateway info
OpenShell-->>NemoClaw: gateway metadata
end
alt Healthy Gateway Present
NemoClaw->>Registry: Query registry
Registry-->>NemoClaw: OK
NemoClaw-->>User: Status/Connect success
else Gateway Issues Detected
rect rgba(200, 100, 100, 0.5)
Note over NemoClaw,OpenShell: Runtime Recovery
NemoClaw->>OpenShell: gateway select nemoclaw
NemoClaw->>OpenShell: startGatewayForRecovery
OpenShell-->>NemoClaw: Recovery result
end
NemoClaw->>OpenShell: Re-query sandbox state
OpenShell-->>NemoClaw: Updated state
alt Recovery Successful
NemoClaw->>Registry: Update/reconcile registry
Registry-->>NemoClaw: OK
NemoClaw-->>User: Recovered + Status/Connect
else Recovery Failed
NemoClaw->>Registry: Mark invalid entries
Registry-->>NemoClaw: OK
NemoClaw-->>User: Error + Guidance
end
end
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Supersedes #908 because the branch had to be rewritten onto signed commits to satisfy verified-signature requirements.
Summary
nemoclawgateway across repeat onboardingconnectandstatusinstead of trusting stale local registry entriesIssues
Security
openshellwrappersValidation
Brev CPU Validation
Environment:
brev-cpukj-nemoclaw-cpu-20260325-15544743cf8ebValidated on a real disposable Linux host:
openshell gateway stop+openshell gateway start --name nemoclaw, NemoClaw now surfaces a precise post-restart classification instead of a generic transport failureReadyResidual
Connection refusedstate. That remains a gateway/runtime limitation, not something this PR tries to bypass.Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Chores