Repository navigation
Description
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.
- Launch as gateway-managed executables. The gateway launches Docker, Podman, and the VM driver as separate processes and talks to them over the existing
ComputeDrivergRPC contract. Each driver gets its table on stdin and gateway metadata in a versionedConfigureRPC (proto/driver_launch.proto), and stops only when the gateway releases it withShutdown. 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. - 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 fromdesktopis 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. - Package the driver binaries built in
desktop.packagesconsumes the Docker, Podman, and VM driver binaries produced in thedesktoprepository. - Release from packaging. Install paths deliver a single versioned bundle that pairs a core release with a
desktoprelease, gated by the install canary. - 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_configtables 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/desktopwith named maintainers, CI, and release automation. - Core builds, tests, and releases without the Docker, Podman, or VM driver crates.
-
desktopCI runs the core conformance harness against its drivers on a pinned core release. - A laptop install through
packagesstill produces a working Docker or Podman gateway from pinned core anddesktopreleases. - 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;
packagesand the install canary consume thedesktopartifacts.
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
desktopa narrower dependency on core, but needs a classification of the sharedopenshell-corecode 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
desktopthat 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-gatewayregisters drivers ininstall_default_compute_drivers()behindcompute-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 indocs/extensibility/drivers.mdx.proto/compute_driver.protoalready carries protocol negotiation (PeerMetadatainGetCapabilities) and the admission policy match.- The reverse dependencies from core to the driver crates are
openshell-supervisor-networkonopenshell-driver-vm(an allocation-tracking test helper) andopenshell-driver-vmonopenshell-driver-podman(socket detection).
Tasks
Prerequisites (ai-openshell/desktop)
- Settings request to infra:
maintainerswrite access,Required checksas 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
- Launch as gateway-managed executables
- chore(server): remove unused registration hooks #5381 Remove unused registration hooks (prerequisite cleanup)
- feat(drivers): launch the VM, Podman and Docker drivers with serve and Configure #5914 Launch the VM, Podman and Docker drivers with
serveandConfigure - feat: run compute drivers as launched child processes #5384 Run compute drivers as launched external processes
- feat: pass launched drivers a versioned startup document #5385 Startup document
- feat: launch external compute drivers from a generic launcher #5386 Launcher
- feat: add probe, preflight, capability fields, and driver selection for launched drivers #5387 Driver detection, preflight, and selection
- refactor: launch the VM driver through the generic launcher #5388 Migrate the VM driver to the launcher
- feat: run the Docker driver as a launched external driver by default #5389 Run Docker as a launched external driver
- feat: run the Podman driver as a launched external driver by default #5390 Run Podman as a launched external driver
- chore(gateway): remove the per-driver launcher Cargo features #5965 Remove the per-driver launcher Cargo features (draft PR feat(gateway): replace per-driver launcher features with driver-launcher #6035)
- Import the crates into
ai-openshell/desktop
- Remove the reverse dependencies from core on the driver crates (draft PR refactor(drivers): remove reverse dependencies on the VM and Podman drivers #6023)
- Record the freeze commit in the repository
- Import with history (ai-openshell/desktop#2); verification output in the PR (tree hash, commit, author, and sign-off counts, no bare
#N) - Record the pinned core revision (SHA or release tag) in every
desktoprelease - Core issue and PR: freeze guard that fails on changes to the moved paths (deletions exempt)
- Open core PRs touching the crates ported with authors preserved
- chore: move driver-specific issues to the desktop repository #6045 Triage the open
area:driversissues and transfer the VM, Podman and Docker ones todesktopat the freeze - feat: run driver tests, e2e lanes and the conformance harness from the desktop repository #6041 Run the driver tests, the VM, Podman and Docker e2e lanes, and the conformance harness from
desktopCI; make the VM build and kernel workflows pass there - Governance PR: Dependabot, CodeQL, linting, zizmor, CONTRIBUTING, SECURITY, AGENTS
- Package binaries built in
desktop
- feat: build, package, and release the desktop drivers from packages #6042
packagesbuilds, packages and releases the Docker, Podman, and VM driver binaries fromdesktop - Install canary passes with pinned core and
desktopartifacts - test: verify the release paths for launched drivers that #5914 did not #6043 Verify the release paths feat(drivers): launch the VM, Podman and Docker drivers with serve and Configure #5914 did not
- 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
- Remove the driver code from core
- chore: remove the linked desktop drivers from core #5391 Remove the linked desktop drivers from core
- chore: move or remove the driver e2e wrappers and lanes in core #6044 Move or remove the driver e2e wrappers and lanes in core
- Core issue and PR: remove the crates, VM scripts, kernel workflow, gateway configs, release jobs and expected-job checks
- Core docs point at the new location for at least one release
Deferred
- refactor: specify the boundary and supervisor-registration contracts compute drivers use #5456 Contract and supervisor-registration specifications (after the move)
- Launcher hardening and configuration cleanup: feat: configure the upstream proxy once for all compute drivers #5933, test: add a gateway integration test for launched-driver failures #5934, feat(gateway): handle launched-driver socket paths that exceed the Unix socket limit #5935, feat(gateway): verify the trust of a launched driver binary in packaged installs #5936, feat(gateway): make launched-driver detection non-blocking #5940, feat(gateway): define resource admission at the gateway level with a typed policy #5941, feat(gateway): retry an explicitly selected Docker driver while its backend is unavailable #5998, feat(drivers): one precedence rule for boolean-like table and environment settings #6002; trace propagation suite: test: verify driver traces join the gateway's trace in an e2e feature suite #6006
- Open question: how the
windowsbranch driver (openshell-driver-mxc) relates todesktop - Open question: who owns the macOS signing identity and the kernel release cadence for the VM driver
Superseded by this plan: #5383 (carve out the driver SDK and container-runtime crate). To be confirmed before closing.
Activity
elezar commentedon Nov 3, 2026
Assigning RFC 0022 to this issue. The draft will live atThe RFC is no longer associated with this issue explicitly.rfc/0022-desktop-driver-migration/.docs(rfc): link the RFC pull request
docs(rfc): mark the RFC ready for review
elezar commentedon Nov 20, 2026
Updated the description to match the current plan, and dropped the RFC 0022 link now that #5202 is closed:
ai-openshell/desktop(ai-openshell/desktop#2 is the proof of concept), depending on core's platform crates through a pinned core revision.desktop.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).