Skip to content

Phase 1 slice 1: Route sandbox inventory and readiness through the OpenShell adapter #9803

Description

@rsliter

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:

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.

Activity

  1. self-assigned this
    on Aug 20, 2026
  2. added theissue type on Aug 20, 2026
  3. rsliter commented on Aug 24, 2026

    @rsliter
    CollaboratorAuthor

    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.

  4. added
    integration: openclaw
    on Aug 24, 2026
  5. cv commented on Aug 28, 2026

    @cv
    Collaborator
    • 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.
  6. added a commit that references this issue on Aug 31, 2026
    d5ff020
  7. added
    area: architecture
    area: sandbox
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: architecturearea: sandboxintegration: openclaw

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions