Skip to content

[Epic] Complete pre-work for the OpenShell 0.1.x upgrade #12558

Closed as not planned
7 of 7 issues completed
Closed as not planned

Description

@rsliter

Superseded by #12603 (2026-11-18)

This pre-work epic is closed as superseded by the integrated OpenShell upgrade PR #12603, which now targets OpenShell 0.1.9.

Remaining native-inference migration, managed-route retirement, profile qualification, agent/platform parity, legacy cutover safety, and owned cleanup follow that PR. Closing these trackers does not establish passing qualification or approve merge or release. The accepted requirements and evidence below remain historical context; the delivery status dated 2026-11-16 is no longer the active work plan.

Related open trackers consolidated into #12603: #12636, #12940, #13197, #12975, and #13346. Completed children retain their existing closure records. Independent bugs, repair PRs, and the broader stability epic #13338 retain their own scope.


Problem

NemoClaw historically sent inference traffic through OpenShell's workspace-wide inference.local route. Most native-provider implementations have merged, but retained shared routes and qualification gates remain. OpenShell 0.1.x removes that route. Sandboxes must instead attach providers and call their native endpoints.

The upgrade also requires explicit provider-profile imports and image references in place of Dockerfile paths at openshell sandbox create --from. NemoClaw can prepare these behaviors on its current OpenShell pin before combining them with SDK, gateway-schema, artifact, and packaging changes. The separate dependency update, #12603, now targets OpenShell 0.1.7. This epic retains its pre-work scope and does not authorize the pin change.

Delivery status (2026-11-16)

Most implementation has merged. This epic remains open for retained-route disposition, route retirement, qualification evidence, and tracking reconciliation.

Track Recorded status Remaining action
NVIDIA hosted #12562 merged. Include its supported paths in final parity evidence.
Fixed hosted providers #12886 merged; #12589 closed. Include distinct protocols and credential shapes in final parity evidence.
Custom hosted endpoints #13201 merged; #13195 closed. Original tracker #12636 remains open. Reconcile #12636 against merged behavior and recorded coverage limitations. Track the open DCode trusted-private credential repair in #13888.
Host-local agents DCode #13203, OpenClaw #13293, Pi #13007, and Hermes #13292 all merged. Reconcile per-agent runtime and cleanup evidence below. Do not start competing implementations.
Local NVIDIA NIM #13116 preserves the shared route. Resolve and qualify a native path under a separate accepted decision before retiring that route.
Provider-profile imports Inventory and repairs #13345, #13558, #13353, and #13351 completed; Model Router native profile #14104 merged and #13560 closed. Complete selected-release qualification #13346, then reconcile parent #12940.
Dockerfile image handoff #13035 and #13077 merged; #12942 closed. Retain the delivered engine and source admission boundaries in final compatibility evidence.
Managed-route retirement Slice 5 is not recorded as complete. Verify every retained selection, remove production shared-route dependencies, and prove operation with the old route disabled.

Remaining closure gates

  1. Reconcile existing evidence before scheduling more qualification. Record tested commits, selectors, terminal results, and cleanup against Migrate Deep Agents Code local inference to native providers #13197, Defer Hermes native-local credential projection from Slice 4 #12921, Alternative Slice 4 plan: preserve local inference through three stacked PRs #12975, and Slice 3: Move user-supplied hosted endpoints to native inference #12636. Reuse valid results; do not infer full-matrix success from a merged PR.
  2. Resolve Local NIM's native path through Decide and preserve Local NVIDIA NIM routing through native inference migration #13116's separate decision boundary. Preserving its shared route does not satisfy Slice 5.
  3. Complete Slice 5 after every retained provider selection has a qualified native path. Keep compatible-endpoint, registered-provider, and routed-provider callers in the final inventory.
  4. Complete Qualify the import-only provider lifecycle on the selected OpenShell release #13346 on the selected OpenShell release: empty catalog, import/create/attach, matching-profile reuse, collision refusal before mutation, and terminal cleanup. Record the binary or image identity and tested NemoClaw commit.
  5. Reconcile Verify provider profile imports for the OpenShell upgrade #12940 and the remaining child trackers, then record the repository-defined parity evidence and handoff to chore(deps): upgrade OpenShell runtime and SDK to 0.1.10 #12603. The upgrade's runtime, platform, and release gates remain owned by that separate PR.

Product decision and outcome

Decision: Accept.

  • Reason: Move inference to native provider access before the selected OpenShell upgrade combines it with dependency and runtime changes.
  • Placement: Core NemoClaw onboarding, inference selection, provider integration, agent configuration, health, and model compatibility.
  • Accountable maintainer: @rsliter.
  • Validation: Preserve current user commands and the repository-defined provider, agent, and platform matrix for the completed epic. Host-local delivery is tracked per agent below. Retained OpenClaw, Pi, Hermes, and Local NIM selections remain available on their current routes until their own accepted native slices are qualified. Prove each native provider class through existing test owners.

The ownership model is:

  • NemoClaw defines its supported provider profiles, endpoints, model configuration, and safe defaults.
  • OpenShell stores credentials, attaches providers to sandboxes, and enforces endpoint and executable restrictions.
  • Each sandbox receives only its selected provider access.
  • Each agent calls the provider's native endpoint and owns the model, request format, and timeout.

NemoClaw will not recreate OpenShell's retired workspace-wide inference route.

This decision governs the native-inference slices below. #12940 checks the existing provider-profile ownership contract against the import-only catalog. #12942 records its own Accept decision for the local Dockerfile-to-image build handoff. Neither child authorizes the OpenShell pin change.

Desired behavior

  • Existing NemoClaw onboarding and inference-selection commands remain unchanged.
  • NemoClaw installs and maintains only its own provider profiles.
  • NemoClaw attaches the selected provider to the selected sandbox.
  • Agent configuration uses the provider's native endpoint.
  • Status and health checks test the same native path that the agent uses.
  • Credential values remain inside OpenShell's credential boundary.
  • A failed native path does not silently fall back to inference.local.
  • Supported provider paths import and verify their NemoClaw-owned profiles before provider creation or attachment.
  • Generated Dockerfile paths build an image with the selected local Docker or Podman gateway engine, then pass its reference to OpenShell. The user-supplied Dockerfile path follows Build Dockerfile sources into images before OpenShell sandbox creation #12942's scope gate: support the same flow if it stays simple, or deprecate it. Report build and creation failures, and report success only after readiness.

Scope

Included

  • Add NemoClaw-owned, workspace-scoped profiles for current supported providers.
  • Create or reuse NemoClaw-owned provider instances without exposing credential values.
  • Attach providers to the selected sandbox and wait for applied state where required.
  • Configure each current agent with the native endpoint, model, API format, and timeout.
  • Preserve required model-specific compatibility outside the retired hostname contract.
  • Replace route-specific health, status, repair, DNS, and policy behavior.
  • Remove managed-route dependencies after every supported provider selection has a native path.
  • Audit and close import-only provider-profile gaps through Verify provider profile imports for the OpenShell upgrade #12940.
  • Build generated Dockerfile sources into images for local gateways through Build Dockerfile sources into images before OpenShell sandbox creation #12942. Attempt the same for user-supplied Dockerfiles within that issue's scope gate, with clear phase and failure messages.

Excluded

Profile and security rules

  • Use NemoClaw-specific profile IDs. Do not overwrite a built-in or user-owned profile.
  • Scope profiles to the NemoClaw workspace unless an accepted follow-up requires wider scope.
  • Treat a conflicting profile ID or ownership mismatch as an error.
  • Restrict each profile to required endpoints and executable paths.
  • Keep existing URL and SSRF validation for user-supplied endpoints.
  • Never put credential values in command arguments, logs, state, artifacts, or model-visible output.
  • After an ambiguous create or attach result, observe OpenShell state before another mutation.
  • Detach or delete only resources with proven NemoClaw ownership and sandbox identity.

OpenShell stores credentials for the provider lifetime. The sandbox receives opaque placeholders. OpenShell removes access when NemoClaw detaches the provider or deletes the owned sandbox or provider.

Capability slices

Slice 1: Use native NVIDIA hosted inference

Implementation PR: #12562 (merged).

Outcome: Fresh sandboxes that use the default NVIDIA hosted provider call its native endpoint without inference.local.

  • Add the minimum profile ensure, provider ensure, attachment, and observation behavior.
  • Configure each supported agent for the native NVIDIA endpoint.
  • Move onboarding, inference selection, status, and health for this provider to the native path.
  • Prove profile collision denial and credential redaction.

Do not create a standalone provider framework. Later slices may extend only the mechanism this outcome requires.

Slice 2: Move remaining fixed hosted providers

Implementation: #12886 merged; #12589 closed.

Outcome: Every current provider with a fixed public endpoint uses native provider access.

  • Map each current fixed hosted selection to one NemoClaw-owned profile.
  • Preserve current OpenAI-compatible, Anthropic, Gemini, and other existing protocol behavior.
  • Preserve model-specific compatibility only where the native provider requires it.
  • Test each distinct protocol and credential shape. Do not test every provider on every platform in this slice.

This slice depends only on Slice 1's minimum mechanism.

Slice 3: Move user-supplied hosted endpoints

Implementation: #13201 merged and closed retry tracker #13195. Original tracker #12636 remains open and needs reconciliation.

Evidence limits: #13338 records deferred real-request combinations for Hermes custom Anthropic-to-OpenAI, fresh public custom OpenAI onboarding, and Pi credential rewrite. These are coverage gaps, not established regressions. Open repair #13888 addresses DCode trusted-private compatible-endpoint credential selection.

Outcome: Existing compatible-endpoint workflows create an endpoint-specific profile and use the native endpoint.

  • Validate the endpoint before profile creation.
  • Bind credentials only to the validated endpoint and API surface.
  • Never repoint a public vendor profile to another host.
  • Fail without partial activation for malformed endpoints, profile collisions, or unsupported protocols.

This slice depends on Slice 1. It does not depend on Slice 2.

Slice 4: Move host-local providers

All four agent implementations merged. #12975 remains the local-inference tracking owner. Its October delivery plan is historical; use the merged PRs and later evidence below.

Agent Owning work Recorded disposition and remaining action
Deep Agents Code #13197, merged #13203 #13197 still explicitly requires post-merge runtime outcomes and cleanup. Reconcile those records before closing it.
OpenClaw Merged #13293; follow-up #13447 Native target passed on main in two recorded runs. This qualifies that target, not the surrounding full workflows or every compatible-endpoint combination.
Pi Merged #13007; follow-up #13367 #13338 records run 38953506804 passing all Pi qualification phases. Reconcile the evidence and still-open #13364; do not treat its earlier failure text as the final result.
Hermes #12921, merged #13292 #13292 records a passing seven-case qualification, including switching and cleanup. Reconcile that selector's coverage with #12921's three credential slots and local startup/rebuild requirements before closing the issue.

Local NVIDIA NIM retains its shared route under #13116; #13220 preserves that boundary for DCode. Do not infer native NIM approval from standalone vLLM support.

  • Use the existing qualified host address and least-privilege authenticated or credentialless profile.
  • Prove the actual agent's selected endpoint/model, scoped authentication, sibling denial, restart/rebuild, status, and owned cleanup.
  • Preserve current runtime startup and GPU ownership.
  • Fail visibly on a failed native operation. Do not fall back to the shared route.
  • Keep manual backup and fresh recreation for legacy states that cannot safely resume or rebuild. Do not add automatic migration.

Earlier combined PRs #12777 and #12977 are closed without merge. Use merged main as the base; retain those PRs as historical references. Documentation catch-up #13308 merged; later routing guidance #13609 also merged.

This slice depends on Slice 1 and can proceed alongside hosted-provider work. A merged implementation is not a claim of completed runtime qualification.

Slice 5: Retire the managed inference route

Outcome: NemoClaw no longer calls OpenShell managed-inference commands or depends on inference.local.

  • Remove production calls to openshell inference get and openshell inference set.
  • Remove obsolete route-specific DNS, policy, health, repair, and compatibility code.
  • After every supported caller has a native path, remove the compatible-endpoint smoke check's inference.local requests and route-specific diagnostics. Keep its in-sandbox model-response proof, applicable direct-access denial checks, and fail-closed errors.
  • Update current guidance without changing NemoClaw's user-facing commands.
  • Disable the old route on the current OpenShell release and run existing inference qualification.

Do not start this slice until every current provider selection has a working native path. Local NIM #13116 still retains the shared route. Reconcile the merged Hermes implementation and its evidence against #12921, plus all other retained selections, before claiming full-agent parity. Completing one agent or recording one passing target does not satisfy this gate.

Other upgrade-readiness tracks

Each child owns its detailed acceptance and validation. #12603 separately owns the selected OpenShell pin, gateway schema, SDK, runtime, and platform qualification.

Acceptance evidence

  • A supported selection installs or reuses the NemoClaw-owned profile and provider.
  • OpenShell attaches that provider only to the selected sandbox.
  • A fresh agent process completes a native request with the selected model.
  • Status and health assess the endpoint used by the agent.
  • A user-owned profile collision causes no mutation.
  • A rejected endpoint creates no profile or provider.
  • Credential values remain absent from arguments, logs, state, artifacts, and model-visible output.
  • An ambiguous mutation triggers observation instead of a second mutation.
  • A failed native request does not become success or trigger managed-route fallback.
  • Production code has no managed-route command or hostname dependency after Slice 5.
  • The existing repository-defined platform matrix passes on the current OpenShell pin.
  • Verify provider profile imports for the OpenShell upgrade #12940 proves profile import ordering, repeat setup, collision refusal, and a representative selected-release smoke run.
  • Build Dockerfile sources into images before OpenShell sandbox creation #12942 proves that generated and any supported user-supplied Dockerfile paths pass an image reference, report build failures before sandbox creation, and report success only after readiness. If the user-supplied path exceeds its scope gate, Build Dockerfile sources into images before OpenShell sandbox creation #12942 proves its deprecation warning and early rejection. A remote gateway without image distribution fails before build.

Related work

Delivery order

  1. Reconcile the merged hosted and per-agent local slices against their acceptance evidence. Preserve explicit coverage gaps and retained routes.
  2. Resolve and qualify the remaining native selections, including Local NIM, before route retirement.
  3. Deliver Slice 5 and prove that the old route can be disabled without losing a retained selection.
  4. Complete Qualify the import-only provider lifecycle on the selected OpenShell release #13346 against the selected release and close Verify provider profile imports for the OpenShell upgrade #12940 after reconciling its completed inventory and repairs. Build Dockerfile sources into images before OpenShell sandbox creation #12942's implementation is already complete.
  5. Record final parity evidence and the pre-work handoff to chore(deps): upgrade OpenShell runtime and SDK to 0.1.10 #12603. Keep its OpenShell 0.1.7 dependency update and qualification outside this epic.

Stop conditions

  • Stop if current OpenShell cannot attach a provider without weakening credential protection.
  • Stop if a profile requires wildcard endpoint or executable access.
  • Stop if a slice requires a new provider, agent, platform, migration guarantee, or user workflow.
  • Stop if compatibility requires automatic fallback between native and managed routes.
  • Stop if a pre-work change requires the selected OpenShell release's SDK or gateway schema.
  • Stop route retirement until every current provider selection passes native-path evidence.
  • Stop extending Build Dockerfile sources into images before OpenShell sandbox creation #12942's user-supplied Dockerfile path if it needs broader build access, changed context or credential boundaries, remote image publication, multiple agent or runtime exceptions, or new recovery protocols. Deprecate that path under Build Dockerfile sources into images before OpenShell sandbox creation #12942's scope gate while keeping generated-Dockerfile onboarding functional.

Checklist

Sub-issues

Sub-issues

7 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. added theissue type on Oct 1, 2026
  2. added
    area: providers
    area: security
    provider: anthropic
    provider: nvidia
    provider: ollama
    provider: openai
    provider: vllm
    on Oct 3, 2026
  3. rsliter commented on Oct 9, 2026

    @rsliter
    CollaboratorAuthor

    Proposed requirement for the separate OpenShell 0.1.2 upgrade

    Epic #12558 migrates inference on the current OpenShell pin. Its accepted scope excludes the 0.1.2 pin change and legacy sandbox migration. The following is a dependency for that later upgrade, not an added acceptance criterion for this epic.

    Cutover gate requirements

    1. Before NemoClaw retires a 0.0.x gateway or replaces its OpenShell components with 0.1.x, it must detect existing sandboxes bound to that gateway. If any exist, it must stop with the gateway and sandboxes intact until a separately accepted recreation path is available.
    2. The normal installer, prepared-upgrade path, direct OpenShell installer, and onboarding path must enforce the same boundary. An unreadable version, registry, or gateway inventory must stop the cutover. A Ready phase, backup, or environment flag alone must not bypass it.
    3. The stop message must identify the affected gateway and sandbox names, explain that 0.1.x requires recreation, and omit credential values. A fresh installation or an upgrade that does not cross this boundary must retain its existing behavior.
    4. Focused installer tests must prove that blocked and ambiguous cases invoke no gateway retirement or binary replacement. Cover normal, prepared, direct-installer, and onboarding entry points. Test the allowed cases separately.

    This gate prevents an unsafe cutover. It does not authorize or implement sandbox migration or rollback.

  4. 12 remaining items

  5. changed the title [-][Epic] Complete pre-work for the OpenShell 0.1.2 upgrade[/-] [+][Epic] Complete pre-work for the OpenShell 0.1.x upgrade[/+] on Nov 17, 2026
  6. rsliter commented on Nov 18, 2026

    @rsliter
    CollaboratorAuthor

    Superseded by OpenShell upgrade PR #12603, per the maintainer decision to consolidate the remaining pre-work into that upgrade.

    Closed the remaining related trackers #12636, #12940, #13197, #12975, and #13346 as superseded. Already-completed children retain their closure records.

    The consolidated obligations on #12603 preserve native-inference migration, managed-route retirement, profile qualification, agent/platform parity, legacy cutover safety, and cleanup. Qualification remains incomplete; this closure does not approve merge or release.

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: providersarea: securityprovider: anthropicprovider: nvidiaprovider: ollamaprovider: openaiprovider: vllm

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions