User Story
As a team deploying OpenShell on managed Macs, we want agents and their tools to run directly as macOS processes with OpenShell's filesystem and network enforcement, so that we can use native tools without maintaining a separate container runtime or Linux guest.
Problem Statement
OpenShell's released MicroVM backend runs Linux workloads on macOS through libkrun and Apple's Hypervisor.framework. It already avoids a separate container runtime, but the workload still needs a Linux guest. OpenShell does not currently provide a released App Sandbox backend for running workloads directly on macOS.
Impact / Why This Matters
Teams whose workloads depend on macOS binaries or Apple SDKs cannot run those tools inside a Linux guest. For example, an agent working on a macOS project may need to invoke the installed Swift toolchain and run the resulting macOS test executable.
Administrators must also provision and update the selected runtime and guest components. Native execution could reduce that maintenance for managed Macs while keeping local agent activity under OpenShell policy. Any startup or memory improvements would need measurement.
Proposed Design
Offer an explicitly selected native macOS backend, initially as an external integration through ComputeDriver. Evaluate Apple's supported App Sandbox APIs as the confinement mechanism.
The user workflow should be:
- Install a signed native runtime through a documented process suitable for managed Macs, with required permissions and device-management steps explained.
- Select native macOS execution through OpenShell and supply a host command, working directory and policy. Report unsupported requirements before starting the workload.
- Run the command and its children with access limited to the accepted policy. Access to files and network destinations outside that policy remains blocked.
- Use OpenShell to execute further commands, inspect policy decisions and stop or delete the sandbox. Required enforcement must remain active throughout the workload's lifetime.
Acceptance Criteria
Alternatives Considered
The existing MicroVM backend remains useful for Linux workloads and provides a working deployment option today. It does not execute native macOS tools.
Apple Container support (#1887) would integrate another runtime that runs Linux guests. It addresses a different workload requirement.
Running tools directly on the host meets the operating-system requirement but leaves their activity outside an OpenShell-managed native sandbox.
Agent Investigation
No response
Checklist
User Story
As a team deploying OpenShell on managed Macs, we want agents and their tools to run directly as macOS processes with OpenShell's filesystem and network enforcement, so that we can use native tools without maintaining a separate container runtime or Linux guest.
Problem Statement
OpenShell's released MicroVM backend runs Linux workloads on macOS through libkrun and Apple's Hypervisor.framework. It already avoids a separate container runtime, but the workload still needs a Linux guest. OpenShell does not currently provide a released App Sandbox backend for running workloads directly on macOS.
Impact / Why This Matters
Teams whose workloads depend on macOS binaries or Apple SDKs cannot run those tools inside a Linux guest. For example, an agent working on a macOS project may need to invoke the installed Swift toolchain and run the resulting macOS test executable.
Administrators must also provision and update the selected runtime and guest components. Native execution could reduce that maintenance for managed Macs while keeping local agent activity under OpenShell policy. Any startup or memory improvements would need measurement.
Proposed Design
Offer an explicitly selected native macOS backend, initially as an external integration through
ComputeDriver. Evaluate Apple's supported App Sandbox APIs as the confinement mechanism.The user workflow should be:
Acceptance Criteria
Alternatives Considered
The existing MicroVM backend remains useful for Linux workloads and provides a working deployment option today. It does not execute native macOS tools.
Apple Container support (#1887) would integrate another runtime that runs Linux guests. It addresses a different workload requirement.
Running tools directly on the host meets the operating-system requirement but leaves their activity outside an OpenShell-managed native sandbox.
Agent Investigation
No response
Checklist