Repository navigation
Description
Part of #5200.
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. The first step is to know that the drivers build in ai-openshell/desktop against a pinned core revision.
Problem Statement
#5200 imports the Docker, Podman, and VM driver crates into ai-openshell/desktop with a pinned git dependency on core's platform crates (openshell-core, openshell-isolation-interface, openshell-sandbox-backend, openshell-otel, openshell-driver-sdk, openshell-driver-launch). ai-openshell/desktop#2 is a proof of concept. It is not yet recorded what else the move needs. The driver crates use workspace = true for many dependencies (roughly 33 to 39 entries each) and inherit version, edition, rust-version, and lints from the core workspace. Whether core's proto generation works when the crates are consumed through a git dependency is also unconfirmed.
Impact / Why This Matters
If the pinned build does not work, the import stalls, or desktop carries patches against core that nobody tracks.
Proposed Design
Confirm, and write down, how desktop builds the drivers against a pinned core revision:
- the core pin (a SHA or a release tag), where it is recorded, and who bumps it and how;
- how the
desktopworkspace reproduces core's workspace dependency versions, lints, edition, andrust-version; - proto generation and any build scripts that expect the core workspace layout;
Cargo.lockhandling and whether apatchsection is needed;- how a core change to
openshell-coreinternals that the drivers use (proto::compute,sandbox_env,resource_admission,sandbox_generation,jwt) is detected before it breaksdesktop.
Reorganising the contracts the drivers use (#5456) is out of scope and stays a follow-up.
Acceptance Criteria
- The three driver crates build and pass their unit tests in
desktopagainst the pinned core revision. - The pin and the bump process are documented in
desktop. - Differences between the core and
desktopworkspaces that the build needs are listed.
Alternatives Considered
- Carve out a driver SDK first. Gives
desktopa narrower dependency on core, but needs a classification of the sharedopenshell-corecode first. feat: move the desktop compute drivers to the ai-openshell/desktop repository #5200 chooses the pinned dependency and leaves an SDK boundary for later.
Activity