Skip to content

Build Dockerfile sources into images before OpenShell sandbox creation #12942

Description

@rsliter

Problem

The intended OpenShell upgrade removes Dockerfile and build-context inputs from openshell sandbox create --from. NemoClaw still passes Dockerfile paths for user-supplied recipes, portable Hermes, and some generated-image fallbacks. OpenShell will require an existing image reference instead.

Parent epic: #12558. This is a separate Dockerfile cutover decision outside the epic's native-inference slices. It does not change the OpenShell pin.

Product decision

Decision: Accept.

  • Reason: Preserve generated-Dockerfile onboarding and attempt to retain nemoclaw onboard --from <Dockerfile> when OpenShell requires an image reference. Deprecate the user-supplied option if its required build and failure handling exceed the scope gate below.
  • Placement: Core NemoClaw onboarding and sandbox creation for local Docker and Podman gateways. Reuse the existing build-context staging and runtime-provider boundaries.
  • Accountable maintainer: @rsliter.
  • Validation: Prove generated recipes through each applicable local engine. For user-supplied Dockerfiles, prove the same flow or the deprecation behavior below. Check build, image visibility, sandbox readiness, and failure messages for supported paths.

Required behavior

These requirements apply to generated Dockerfiles and to user-supplied Dockerfiles that pass the scope gate below.

  1. For a generated or user-supplied Dockerfile, select the local gateway's Docker or Podman engine before building. Refuse an engine mismatch or unsupported gateway before the build.
  2. Stage the existing permitted build context. Build and tag the image in the selected gateway engine's image store. Confirm the image is available to that gateway, then pass its image reference to openshell sandbox create --from.
  3. Tell the user which engine is building the image. Report the build result before starting sandbox creation. Report onboarding success only after sandbox creation and readiness succeed.
  4. If the build fails, report a bounded actionable error and do not create the sandbox. Do not print credentials from the build environment or diagnostics.
  5. If sandbox creation or readiness fails after a successful build, report that phase accurately. Do not report onboarding success.
  6. For a remote gateway without an image distribution path, fail before the build with a clear explanation. Registry publication is outside this issue.

Scope gate and deprecation fallback

Before extending the user-supplied path, check its current agent and runtime variants. Keep that path only if one selected-engine build, tag, and handoff can reuse the existing staged-context and credential boundaries. Stop and deprecate the user-supplied --from <Dockerfile> option if support requires any of these:

  • Registry publication or cross-engine image transfer.
  • Broader credential access or weaker build-context checks.
  • A new durable recovery protocol for ambiguous or partial builds, image publication, or orphan cleanup.
  • Multiple agent- or runtime-specific exception paths instead of the common build and create flow.

For a supported path, a failed build, missing image, or failed sandbox creation or readiness requires a clear message and a stop. This issue does not add retries or new recovery behavior for those failures.

If the stop condition applies, announce deprecation while the current option still works. On the first release that cannot support it, reject nemoclaw onboard --from <Dockerfile> before provider or sandbox mutation. Give a clear error and update CLI help, documentation, and release guidance. Generated-Dockerfile onboarding must retain a working image-based path.

Acceptance evidence

  • Generated Dockerfiles reach applicable local Docker and Podman gateways through image references. User-supplied Dockerfiles either pass the same local build and create checks or meet the deprecation behavior above.
  • No covered path passes a Dockerfile or local directory to the selected OpenShell release's sandbox create --from.
  • A build failure creates no sandbox and reports the build phase.
  • A successful build followed by failed creation or readiness does not report onboarding success.
  • A ready sandbox reports success with the selected engine and image reference.
  • Focused tests cover engine selection, handoff, phase messages, and remote-gateway rejection. Use existing live test owners for one local Docker and one applicable local Podman build/create path.

Related work and limits

OpenShell change: ai-openshell/openshell#3214

Activity

  1. added
    area: onboarding
    area: sandbox
    on Oct 9, 2026
  2. added
    platform: container
    on Oct 29, 2026
  3. added theissue type on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: onboardingarea: sandboxplatform: container

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions