Skip to content

refactor(environment-providers): run shell recipes through ShellRecipeDriver - #40316

Closed
nwparker wants to merge 1 commit into
nwparker/environment-provider-driverfrom
nwparker/shell-recipe-driver
Closed

nwparker wants to merge 1 commit into
nwparker/environment-provider-driverfrom
nwparker/shell-recipe-driver

Conversation

@nwparker

@nwparker nwparker commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Starting, sleeping, waking and deleting a recipe VM now goes through ShellRecipeDriver (added in #40315) instead of calling the recipe runner functions directly. The shell commands and their inputs are exactly the same, so nothing changes for users.

What Changed

  • runtime-service.ts (provision / cleanup / suspend / resume) and failed-start-cleanup.ts call new ShellRecipeDriver(recipe, repoPath).runCreate / runDestroy / runSuspend / runResume(...) in place of runEphemeralVmRecipeStart / Cleanup / Suspend / Resume({ repoPath, recipe, ... }).
  • That covers both orca.yaml environment recipes and plugin VM recipes; both already reach the runtime service as an OrcaVmRecipe.

Why

This puts the existing recipes behind the environment provider seam without touching runtime records, persisted data, or the IPC surface. Later work can move orchestration onto the generic driver methods one caller at a time.

Linked Issue

N/A (maintainer refactor)

Visual Proof

N/A — no UI or behaviour change. Identical arguments reach identical runner functions.

Testing

  • pnpm check:changed passes.

  • pnpm test src/main/environment-providers src/main/ephemeral-vm src/shared/ephemeral-vm src/main/ipc/ephemeral-vm — all green, including the existing runtime-service, recipe-runner, timeout, resume-pairing and workspace-removal suites.

  • Automated tests added/updated, or explained why not below (existing suites cover it; the change is a call-site swap)

Risk

  • Recipe lifecycle: the run* methods spread the caller's args and set the same recipe/repoPath. The spawned command, env, stdin payload, timeouts and results are unchanged.
  • Persisted data: unchanged.
  • Platforms: no new process or path handling.
  • Back out with a plain revert.

Level: Low

Agent skill upstream boundary

  • Not applicable.

Checklist

  • This PR is small and focused

…eDriver

The runtime service and failed-start cleanup now reach orca.yaml environment
recipes and plugin VM recipes through ShellRecipeDriver's recipe-shaped steps.
Same arguments, same runner, same results: records, failure copy and
diagnostics are unchanged.
@nwparker
nwparker force-pushed the nwparker/shell-recipe-driver branch from 13b9bf0 to ec212dc Compare November 9, 2026 12:03
@nwparker
nwparker force-pushed the nwparker/environment-provider-driver branch from 42ad9e6 to a544130 Compare November 9, 2026 12:03
@nwparker
nwparker deleted the branch nwparker/environment-provider-driver November 9, 2026 12:11
@nwparker nwparker closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant