Skip to content

Introduction

PolicyVisor (pVisor) runs each container in its own Linux VM. The agent's tools use the guest kernel; configure mounts and network access to control what they can reach.

When agents run the same libraries, page sharing lets their VMs read identical pages from one physical copy. Writes remain private. For a cold start, a lazy image fetches the content a tool reads first and leaves unused files on the server. A tool that scans the whole image still pays the cost of those reads.

Container and agent commands

On Linux, mount a project with :stage to review changes after the container exits and write back selected paths.

Workflow Entry points Isolation and result management
Container commands Container commands such as pvisor run, exec, stop, and rm A separate Linux VM for each container; container lifecycle, with a separate staged-bind review/apply/drop contract on Linux.
Agent tasks Start a native Session with pvisor spawn --safe, then review and apply/drop Retain candidate files before selective acceptance; isolation depends on the Host, OCI, or VM executor and installed controls.

The CLI supports Docker-style commands and experimental Compose projects. Docker Engine API clients require a separate Engine. Try native task commands with the offline tutorial, then configure authentication and networking using the agent guides. Ordinary Host Sessions write through by default; file review and acceptance require explicit staging.

The runtime also manages VM lifecycles, images, and memory for inference, evaluation, and RL post-training integrations. Capabilities depend on the interface, executor, and platform; capacity benefits require workload-specific measurements.

pVisor's place in an agent system

pVisor integrates agent-oriented management into sandbox execution: it oversees file and network interactions, coordinates sandbox lifecycles, and optimizes image and memory resources on the Host. The VM executor example below shows pVisor as a module within the sandbox execution framework.

Agent above a Host sandbox framework containing pVisor and its runtime, with the guest VM below

The sandbox runtime / VMM runs the VM and its devices. pVisor coordinates the runtime through lifecycle and resource-management integration points, while Host-side OverlayCore and OverlayNet manage guest file and network I/O. These module relationships require corresponding runtime integration points; support for automatic waiting management is described in the experiment record. The Agent or upper-level system owns decisions, result acceptance, reward computation, and cross-node scheduling.

Entry points and scope

Native Session executors install controls through host namespaces/Seatbelt, an OCI runtime or a VM; the runtime owns lifecycle, staging and records. Two environment-oriented entry points complement Sessions: the Docker-style CLI manages per-container VMs, and the daemon provides local VM lifecycle, command and file interfaces for tested OpenSandbox/E2B protocol subsets.

Native Session operations and daemon sandbox IDs use separate contracts. Container staged binds expose selected review/apply/drop operations with their own source and mount selectors. Choose an interface and platform using the CLI and platform matrix. External orchestrators own cross-node placement, business retries and workflows.

Use cases

Local agent workflows

To limit an agent's impact on your workspace and review and accept file changes after execution, start with your first run and work through execution, review, and apply.

Agent execution infrastructure

To manage multiple execution environments for inference, evaluation, or post-training and reduce resource use during model waits and branching exploration, start with the infrastructure overview to choose an integration interface and runtime configuration.

Today, and after

Supervision and deployment scale are independent dimensions: multiple Sessions can run concurrently and SDKs can manage several sandboxes. This alone does not establish exemption from review, batch merging or distributed scheduling.

Level Human intervention Current status
L0 Approve commands before execution Use agent-native approval
L1 Review changes after execution, then select what to merge Native Sessions provide stage, review, apply/drop and conflict checks
L2 Policy and evidence determine exemptions; humans spot-check Callers can compose existing checks; a unified exemption policy and automatic merge gate still need acceptance
L3 Continuous audit; humans handle exceptions Evidence aggregation and external orchestration remain integration directions without a complete product contract

Native Session review, independent-workspace concurrency examples and CI integration are available today; see parallel agents and CI. The daemon SDK interfaces manage sandbox lifecycles and process/file operations; they do not inherit the Session file-merge workflow.

RL rollouts can reuse recording, forking and tool-prefix replay. Training-framework integration and end-to-end throughput require separate acceptance.

Automation gates and capacity evidence

Supervision cost per unit of agent work remains unmeasured; see supervision cost. The roadmap tracks automation-gate gaps. Size deployments using the specific configurations and evidence in concurrency density.

Support scope

Isolating file changes requires staging, which does not undo external API calls, database writes, or other external side effects. Isolation and resource management depend on the executor, interface, and experimental status; see the corresponding benchmarks for performance evidence.