Skip to content

feat: move the desktop compute drivers to the ai-openshell/desktop repository #5200

Open
1 of 11 issues completed

Description

@elezar

User Story

As an OpenShell Maintainer I want the desktop drivers to exist in their own repository so that their ownership and maintenance can be considered separately to core OpenShell.

Problem Statement

The desktop compute drivers (Docker, Podman, and the microVM driver) should live in the ai-openshell/desktop repository with their own maintainers, CI, and releases, as RFC 0019 (#4426) proposes. They cannot move today because core is compiled against them.

OpenShell compiles the Docker and Podman compute drivers into the gateway binary. The gateway registers them through in-process factories behind the default in-tree-compute-drivers feature, and a few other crates depend on driver crates directly (for example openshell-supervisor-network on openshell-driver-vm, and openshell-driver-vm on openshell-driver-podman).

As a result, the desktop drivers cannot be owned, tested, or released separately from core. The ai-openshell/desktop repository exists, and a proof of concept of the import is in ai-openshell/desktop#2.

Related: #4425, the issue for RFC 0019. This issue covers the separately scoped migration work that #4425 defers until the repository layout is agreed.

Impact / Why This Matters

Desktop driver maintainers must work inside core's CI and release machinery, and core must build and qualify against every first-party driver. This blocks the repository split proposed in RFC 0019 and makes it harder for new maintainers to own the Docker, Podman, and microVM drivers.

The workaround today is to keep everything in one repository with shared ownership, which is the situation RFC 0019 is trying to change.

Proposed Design

Move the drivers in five steps. The steps follow the playbook from the Go SDK move (#5273) where it applies.

  1. Launch as gateway-managed executables. The gateway launches Docker, Podman, and the VM driver as separate processes and talks to them over the existing ComputeDriver gRPC contract. Each driver gets its table on stdin and gateway metadata in a versioned Configure RPC (proto/driver_launch.proto), and stops only when the gateway releases it with Shutdown. Landed in feat(drivers): launch the VM, Podman and Docker drivers with serve and Configure #5914; the launcher design is in feat: run compute drivers as launched child processes #5384.
  2. Import the driver crates into ai-openshell/desktop. The Rust crates are imported with history and depend on core's platform crates through a pinned git dependency. This is what ai-openshell/desktop#2 proves out. The pin is a core revision (a SHA) and may stay one. A core release tag is preferred where one exists, but a release from desktop is not blocked on one. The drivers keep depending directly on core crates (openshell-core, openshell-isolation-interface, openshell-sandbox-backend, openshell-otel, openshell-driver-sdk, openshell-driver-launch) through the pinned git dependency. Reorganising those contracts (refactor: specify the boundary and supervisor-registration contracts compute drivers use #5456) is a follow-up after the move.
  3. Package the driver binaries built in desktop. packages consumes the Docker, Podman, and VM driver binaries produced in the desktop repository.
  4. Release from packaging. Install paths deliver a single versioned bundle that pairs a core release with a desktop release, gated by the install canary.
  5. Remove the driver code from core. Core drops the crates, the linked-driver features, and the reverse dependencies, after a stable core release contains the freeze guard.

From a user or operator point of view:

  • Driver names, auto-detection order, and driver_config tables keep working.
  • A default laptop install still gets a working Docker or Podman gateway.
  • Kubernetes-only deployments are unaffected.

Acceptance Criteria

  • Docker, Podman, and the VM driver live in ai-openshell/desktop with named maintainers, CI, and release automation.
  • Core builds, tests, and releases without the Docker, Podman, or VM driver crates.
  • desktop CI runs the core conformance harness against its drivers on a pinned core release.
  • A laptop install through packages still produces a working Docker or Podman gateway from pinned core and desktop releases.
  • Before the removal, the gateway starts the Docker and Podman drivers as separate processes by default and passes the existing Docker and Podman e2e suites. (feat(drivers): launch the VM, Podman and Docker drivers with serve and Configure #5914)
  • Core CI no longer builds, signs, or packages the driver binaries; packages and the install canary consume the desktop artifacts.

Alternatives Considered

  • Keep one repository and delegate ownership with CODEOWNERS. Least work, but everyone still shares one repository and release machinery.
  • Carve out a driver SDK crate before moving. Gives desktop a narrower dependency on core, but needs a classification of the shared openshell-core code and a new published boundary first. The import depends on core's platform crates directly instead, and an SDK boundary can follow later.
  • A gateway binary built by desktop that links core's server crates and registers the drivers in-process. Avoids a launcher but makes the Rust factory trait a public API and produces two gateway binaries.
  • Separate user-visible versions for core and desktop. Simpler packaging, but moves the compatibility matrix onto users.

Agent Investigation

Findings from reading the repository:

  • openshell-gateway registers drivers in install_default_compute_drivers() behind compute-driver-* features. The VM driver is already launched as a gateway-managed subprocess (crates/openshell-gateway/src/vm.rs, ManagedDriverProcess), and operator-managed external drivers are documented in docs/extensibility/drivers.mdx.
  • proto/compute_driver.proto already carries protocol negotiation (PeerMetadata in GetCapabilities) and the admission policy match.
  • The reverse dependencies from core to the driver crates are openshell-supervisor-network on openshell-driver-vm (an allocation-tracking test helper) and openshell-driver-vm on openshell-driver-podman (socket detection).

Tasks

Prerequisites (ai-openshell/desktop)

  • Settings request to infra: maintainers write access, Required checks as a required status check, merge commits kept until imports land
  • Bootstrap PR: CODEOWNERS, LICENSE, .gitignore
  • Open core PRs touching the driver crates scanned by file list; freeze announced a week ahead and pinged twice
  • spike: confirm the desktop repo builds the drivers against a pinned core dependency #6040 Confirm the pinned git dependency builds, and decide the core pin and how it is bumped
  1. Launch as gateway-managed executables
  1. Import the crates into ai-openshell/desktop
  1. Package binaries built in desktop
  1. Release from packaging
  • Bot GitHub App requested in its own issue; scheduled watcher opens bump PRs on core releases
  • Dry run of the first bundle release against a real version pair
  • First release, with release notes from their own template
  1. Remove the driver code from core

Deferred

Superseded by this plan: #5383 (carve out the driver SDK and container-runtime crate). To be confirmed before closing.

Sub-issues

Sub-issues

1 of 11 Issues completed
Loading 11 sub-issues

Activity

  1. elezar commented on Nov 3, 2026

    @elezar
    ContributorAuthor

    Assigning RFC 0022 to this issue. The draft will live at rfc/0022-desktop-driver-migration/. The RFC is no longer associated with this issue explicitly.

  2. added
    area:drivers
    topic:api
    topic:architecture
    topic:extensions
    on Nov 15, 2026
  3. elezar commented on Nov 20, 2026

    @elezar
    ContributorAuthor

    Updated the description to match the current plan, and dropped the RFC 0022 link now that #5202 is closed:

    1. Launch Docker and Podman as gateway-managed executables, with a config-file based command line (feat: run compute drivers as launched child processes #5384 and its sub-issues own the launcher design).
    2. Import the driver crates into ai-openshell/desktop (ai-openshell/desktop#2 is the proof of concept), depending on core's platform crates through a pinned core revision.
    3. Package the Docker, Podman, and VM driver binaries built in desktop.
    4. Release from packaging.
    5. Remove the driver code from core.

    The driver SDK carve-out (#5383) is no longer a prerequisite and is listed as superseded, to be confirmed before it is closed. The Tasks section is now a checklist for the whole move, modelled on the playbook from the Go SDK move (#5273).

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:driversneeds-rfctopic:apitopic:architecturetopic:extensions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions