Member Junction
    Preparing search index...

    Provisions and finalizes the filesystem a harness runs against.

    Kept deliberately small — two methods — because the interesting variation between a local directory and a container is not the shape of the API, it is what NetworkPolicy can actually enforce. The local provider can only honour it on a best-effort basis; a container provider enforces it for real, which is why mcp-only is the recommended production posture and only meaningful there.

    interface ISandboxProvider {
        Finalize(
            handle: SandboxHandle,
            outcome: "success" | "failure" | "cancelled",
        ): Promise<void>;
        Provision(key: WorkspaceKey, config: SandboxConfig): Promise<SandboxHandle>;
    }

    Implemented by

    Index

    Methods

    • Releases the workspace.

      Must be safe to call on every exit path including crash and cancellation, and must not throw — a finalize that throws inside a failure path masks the original error with a cleanup error.

      Parameters

      • handle: SandboxHandle
      • outcome: "success" | "failure" | "cancelled"

      Returns Promise<void>