Repository navigation
Description
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.
- 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.
- 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. - 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.
- 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.
- If sandbox creation or readiness fails after a successful build, report that phase accurately. Do not report onboarding success.
- 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
- [DGX Spark][Onboard] onboard --from accepts a Dockerfile path for OpenClaw but refuses the same path for Hermes and Deep Agents Code #11888 reports agent-dependent admission of the same custom Dockerfile. Align the build handoff with its accepted path rules; this ticket does not waive existing input validation.
- [Ubuntu 26.04][Onboard] --fresh cannot reclaim a pre-create route reservation after a custom image build failure #11415 separately owns the route reservation left after a pre-create build failure. This issue does not add retry or reservation recovery behavior.
- [Epic] Support native Podman with buildless managed onboarding #7744 owns buildless managed-image onboarding and native Podman qualification. This issue concerns Dockerfile sources; managed-image selection stays buildless.
- Preserve current context filtering, credential handling, and sandbox ownership checks. Do not add new agents, remote registry support, an OpenShell change, or a generic image-build framework.
OpenShell change: ai-openshell/openshell#3214
Activity
fix(onboard): build generated Dockerfiles before sandbox create (#13035)
fix(onboard): build custom Dockerfiles before sandbox create (#13077)