Repository navigation
Closed
Copy link
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryintegration: openclawOpenClaw integration behavior
Description
Parent Epic: #9802
Outcome
Establish the typed, asynchronous NemoClaw OpenShell interface by routing sandbox inventory and readiness behavior through its CLI implementation.
Draft scope
- Define the minimum transport-neutral requests, results, and errors for sandbox lookup, listing, phase observation, and readiness waits.
- Keep gateway targeting explicit in every request.
- Implement the contract with the existing OpenShell CLI.
- Migrate production consumers that inspect sandbox presence or readiness.
- Remove capability-specific argv construction and raw-output classification only after the final migrated consumer no longer needs them.
Acceptance evidence
- Ready, non-ready, terminal, and missing sandboxes produce the same NemoClaw decisions as before the refactor.
- Missing sandbox state is not confused with authentication, transport, schema, or timeout failure.
- CLI table layout, ANSI handling, stdout/stderr behavior, and version-specific compatibility remain private to the CLI implementation.
- Consumers use typed results and do not inspect argv, exit status, stdout, or stderr.
Test plan
- Action tests against a typed fake for state and recovery decisions.
- CLI implementation tests for exact commands, gateway target, parsing, timeout, and error mapping.
- Existing focused sandbox-list, gateway-state, readiness, onboarding reuse, status, and recovery tests.
Dependencies and sequencing
This is the first Phase 1 slice. Later slices depend on the typed interface established by #10132, not on completion of consumers explicitly assigned to those later slices.
Deferred scope
- Sandbox mutations.
- SDK implementation and shared CLI/SDK contracts.
- Gateway registration and local lifecycle management.
Accepted follow-on ownership
These consumers are outside Slice 1 because their behavior is coupled to capabilities owned by later slices:
- Create, recreate, rollback, uninstall, and recovery lifecycle observations: Phase 1 slice 3: Route sandbox create and delete through the OpenShell adapter #9811.
- Gateway state, doctor, destroy-domain, and gateway recovery observations: Phase 1 slice 10: Route gateway targeting and lifecycle through the OpenShell adapter #9807.
- Policy inspection and policy-state semantics: Phase 1 slice 2: Route policy and sandbox config through the OpenShell adapter #9805 and Make OpenShell the sole durable policy source of truth #10514.
- Plugin runner migration and final executable-consumer disposition: Phase 1 slice 11: Complete the OpenShell CLI consumer sweep #9813.
Partial delivery acceptance
A capability can use more than one PR. A partial PR is acceptable only when:
- The PR names each in-scope production consumer that it does not migrate.
- Each deferred consumer is explicitly accepted as out of scope and tracked by a linked follow-on issue with an assigned implementation owner before the partial PR merges.
- The capability issue may close once its own acceptance criteria are met.
- The follow-on issue owns the deferred implementation and links the originating capability issue and partial PR.
- Phase 1 closure issue Phase 1 slice 11: Complete the OpenShell CLI consumer sweep #9813 records each final consumer disposition.
Metadata
Metadata
Assignees
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryintegration: openclawOpenClaw integration behavior
Activity
rsliter commentedon Aug 24, 2026
Decision: Accept
Reason and placement: Core NemoClaw. This slice isolates existing OpenShell CLI inventory and readiness behavior without changing supported behavior.
Accountable maintainer: Rebecca Sliter (
@rsliter)Validation plan: Typed-fake action tests, CLI-adapter command and parsing tests, and existing focused readiness, state, onboarding, status, and recovery tests.
feat(blueprint): add external OpenShell target plan (#10045)
refactor(cli): add typed OpenShell sandbox observer (#10132)
cv commentedon Aug 28, 2026
docs/deployment/deploy-to-headless-server.mdx:232— Sandbox inspection call or contract.docs/monitoring/monitor-sandbox-activity.mdx:41— Sandbox inspection call or contract.docs/reference/cli-selection-guide.mdx:120— Sandbox inspection call or contract.docs/reference/cli-selection-guide.mdx:121— Sandbox inspection call or contract.docs/reference/cli-selection-guide.mdx:122— Sandbox inspection call or contract.docs/reference/cli-selection-guide.mdx:123— Sandbox inspection call or contract.docs/reference/troubleshooting.mdx:1631— Sandbox inspection call or contract.scripts/checks/run-managed-image-openshell-e2e.ts:851— Sandbox inspection call or contract.scripts/checks/run-managed-image-openshell-e2e.ts:856— Sandbox inspection call or contract.scripts/smoke-macos-install.sh:167— Sandbox inspection call or contract.scripts/smoke-macos-install.sh:250— Sandbox inspection call or contract.src/commands/debug.ts:49— Sandbox inspection call or contract.src/commands/debug.ts:65— Sandbox inspection call or contract.src/lib/actions/sandbox/destroy-gateway-cleanup.ts:66— Sandbox inspection call or contract.src/lib/actions/sandbox/rebuild-local-provider-recreate.test.ts:186— Sandbox inspection call or contract.src/lib/adapters/openshell/client.test.ts:254— Sandbox inspection call or contract.src/lib/adapters/openshell/client.test.ts:276— Sandbox inspection call or contract.src/lib/adapters/openshell/client.test.ts:57— Sandbox inspection call or contract.src/lib/adapters/openshell/client.test.ts:58— Sandbox inspection call or contract.src/lib/adapters/openshell/client.test.ts:59— Sandbox inspection call or contract.src/lib/adapters/openshell/client.test.ts:65— Sandbox inspection call or contract.src/lib/adapters/openshell/runtime.ts:116— Sandbox inspection call or contract.src/lib/adapters/openshell/sandbox-identity.test.ts:324— Sandbox inspection call or contract.src/lib/adapters/openshell/sandbox-identity.test.ts:325— Sandbox inspection call or contract.src/lib/diagnostics/debug.ts:367— Sandbox inspection call or contract.src/lib/diagnostics/debug.ts:368— Sandbox inspection call or contract.src/lib/onboard/docker-driver-sandbox-recovery.ts:319— Sandbox inspection call or contract.src/lib/onboard/docker-driver-sandbox-recovery.ts:320— Sandbox inspection call or contract.src/lib/onboard/docker-gpu-supervisor-reconnect.ts:136— Sandbox inspection call or contract.src/lib/onboard/docker-gpu-supervisor-reconnect.ts:202— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-attempt.ts:193— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:222— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:225— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:248— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:249— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:287— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:369— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-identity-gate.test.ts:481— Sandbox inspection call or contract.src/lib/onboard/sandbox-gpu-create-run-attempt.ts:608— Sandbox inspection call or contract.src/lib/onboard/sandbox-readiness-tracing.ts:135— Sandbox inspection call or contract.src/lib/onboard/sandbox-readiness-tracing.ts:288— Sandbox inspection call or contract.src/lib/runtime-recovery.ts:20— Sandbox inspection call or contract.src/lib/runtime-recovery.ts:23— Sandbox inspection call or contract.src/lib/runtime-recovery.ts:33— Sandbox inspection call or contract.src/lib/state/gateway.ts:49— Sandbox inspection call or contract.src/lib/state/gateway.ts:52— Sandbox inspection call or contract.src/lib/state/gateway.ts:66— Sandbox inspection call or contract.src/lib/state/gateway.ts:75— Sandbox inspection call or contract.test/e2e/e2e-cloud-experimental/checks/04-deepagents-code-fresh-reonboard.sh:335— Sandbox inspection call or contract.test/e2e/e2e-cloud-experimental/checks/10-deepagents-code-tui-startup.sh:54— Sandbox inspection call or contract.test/e2e/e2e-cloud-experimental/cleanup.sh:51— Sandbox inspection call or contract.test/e2e/fixtures/clients/sandbox.ts:90— Sandbox inspection call or contract.test/e2e/fixtures/clients/sandbox.ts:98— Sandbox inspection call or contract.test/e2e/live/double-onboard.test.ts:408— Sandbox inspection call or contract.test/e2e/live/double-onboard.test.ts:604— Sandbox inspection call or contract.test/e2e/live/hermes-gpu-startup.test.ts:107— Sandbox inspection call or contract.test/e2e/live/onboard-repair.test.ts:123— Sandbox inspection call or contract.test/e2e/live/onboard-repair.test.ts:304— Sandbox inspection call or contract.test/e2e/live/onboard-resume.test.ts:404— Sandbox inspection call or contract.test/e2e/live/openshell-gateway-upgrade.test.ts:607— Sandbox inspection call or contract.test/e2e/live/phase6-messaging-helpers.ts:247— Sandbox inspection call or contract.test/e2e/live/rebuild-hermes.test.ts:350— Sandbox inspection call or contract.test/e2e/live/spark-express-vllm.test.ts:113— Sandbox inspection call or contract.test/e2e/live/spark-express-vllm.test.ts:125— Sandbox inspection call or contract.test/e2e/live/spark-express-vllm.test.ts:157— Sandbox inspection call or contract.test/e2e/live/spark-express-vllm.test.ts:177— Sandbox inspection call or contract.test/e2e/live/token-rotation.test.ts:205— Sandbox inspection call or contract.test/e2e/live/token-rotation.test.ts:223— Sandbox inspection call or contract.test/e2e/live/windows-mxc-openclaw-process-container-helpers.ts:2196— Sandbox inspection call or contract.test/e2e/live/windows-mxc-openclaw-process-container-helpers.ts:2197— Sandbox inspection call or contract.test/e2e/support/e2e-clients.test.ts:576— Sandbox inspection call or contract.test/e2e/support/e2e-clients.test.ts:585— Sandbox inspection call or contract.test/e2e/support/e2e-clients.test.ts:586— Sandbox inspection call or contract.test/e2e/support/e2e-clients.test.ts:597— Sandbox inspection call or contract.test/installer-integration/install-preflight.test.ts:617— Sandbox inspection call or contract.test/runtime/gateway/gateway-state-reconcile-2276.test.ts:168— Sandbox inspection call or contract.test/security/shellquote-sandbox.test.ts:74— Sandbox inspection call or contract.test/state/snapshot-gateway-guard.test.ts:57— Sandbox inspection call or contract.tools/openshell-agent/runtime.mts:366— Sandbox inspection call or contract.refactor(debug): use typed sandbox observer (#10537)
refactor(cli): use typed sandbox readiness observations (NVIDIA#10574)