Skip to main content

SHEET 06 OF 41

/DOC/:SLUG

PART:
03 DOCUMENTATION
CIRCULATION:
PUBLIC
SOURCE:
pages/Doc/[...Slug].astro
AS OF:
2026-12-02

Deep dive into Grove, the native, sandboxed Rust/WASM extension host that provides an environment for running VS Code extensions compiled to WebAssembly or native Rust, complementing the Node.js-based Cocoon host.

/Deep Dive

Grove - Deep Dive

Deep dive into Grove, the native, sandboxed Rust/WASM extension host that provides an environment for running VS Code extensions compiled to WebAssembly or native Rust, complementing the Node.js-based Cocoon host.

PUBLISHED DEEP DIVE Source/Content/doc/deep-dive-grove.md UNAVAILABLE UNAVAILABLE ARCHITECTURE 4

STATUS UNAVAILABLE NEXT OPEN THE ELEMENT'S MANUAL - IT DESCRIBES THE THING THE CAPTURE WOULD HAVE SHOWN.

# PLATE_01 / GROVE

FIGURE: The capture this record's evidence would show: root network in macro detail.

The manifest is in the build and the plate beside it is not. The capture it describes is a texture study of the element's material, not a screenshot of its interface.

SUBJECT:
ROOT NETWORK IN MACRO DETAIL
MANIFEST:
Public/Evidence/Grove/manifest.yaml
STATE:
MANIFEST PLACEHOLDER
PLATE:
UNAVAILABLE

SOURCE: Public/Evidence/Grove/manifest.yaml

Grove provides the technical foundation for the Rust/WASM extension host within the Land project. Grove provides a native, sandboxed environment for running VS Code extensions compiled to WebAssembly or native Rust, complementing the Node.js-based Cocoon host.


Architecture

Grove is organized into five layers: the extension host controller that manages the lifecycle, the WASM runtime that provides sandboxed execution, the VS Code API bridge that presents the standard extension API, the transport layer that communicates with Mountain, and shared utility modules.

Mermaid diagram

Key Modules

Path Description
Source/Library.rs Library root; exports public API for integration and testing
Source/main.rs Binary entry point; parses CLI and starts the extension host
Source/Binary/ CLI argument handling and standalone vs connected mode selection
Source/API/ The VS Code API surface: Types.rs, the VSCode/ namespace providers and mod.rs
Source/Common/ Shared Error.rs and Traits.rs used across the host and transports
Source/Services/ Service implementations the API surface lifts onto (e.g. ConfigurationService.rs)
Source/Host/ExtensionHost.rs Main controller: coordinates extension loading, activation, and service provision
Source/Host/ExtensionManager.rs Extension discovery, manifest parsing, and loading
Source/Host/Activation.rs Activation event processing (onLanguage, onCommand, etc.)
Source/Host/Lifecycle.rs Extension activate/deactivate lifecycle management
Source/Host/APIBridge.rs VS Code API facade implementation for Rust/WASM extensions
Source/WASM/Runtime.rs WASMtime engine and store management with memory limits
Source/WASM/ModuleLoader.rs WASM module compilation, caching, and instantiation
Source/WASM/MemoryManager.rs WASM linear memory allocation and bounds enforcement
Source/WASM/HostBridge.rs Host function exports to WASM modules
Source/WASM/FunctionExport.rs Registered host functions available to extension WASM code
Source/Transport/Strategy.rs Transport strategy trait for pluggable communication
Source/Transport/gRPCTransport.rs gRPC communication with Mountain via tonic
Source/Transport/IPCTransport.rs Unix/Windows IPC transport for same-host communication
Source/Transport/WASMTransport.rs Direct in-process WASM function call transport
Source/Protocol/SpineConnection.rs Spine protocol client for extension host coordination

Data Flow

Mermaid diagram

Integration Points

Connecting Element Direction Mechanism Description
Mountain Bidirectional gRPC via Vine Mountain activates extensions; Grove forwards API calls back to Mountain
Cocoon Sibling Shared API surface Grove implements the same VS Code API surface as Cocoon for extension portability

Configuration

Option CLI Flag / Feature Default Description
Standalone mode --standalone off Run without Mountain connection for testing
Extension path --extension unset Load a specific extension directly
Transport feature flag gRPC Select grpc, ipc, or wasm transport via Cargo features
Memory limit runtime config platform default Per-extension WASM memory ceiling enforced by WASMtime
WASM build target wasm32-wasi native Extensions must target wasm32-wasi for WASM mode

Important

Extensions must target wasm32-wasi for WASM mode.

Cargo features

Feature Description
grpc gRPC transport support (included in default)
wasm WASMtime WASM runtime (included in default)
ipc Unix/Windows IPC transport (Unix only)
all All features enabled

The record this page documents, as the site files it: the six facts the claim is checked against, and the three files the manual names to check it.

WORKING, 06

FORM:
WASM RUNTIME
WRITTEN IN:
RUST WASM
BOUNDARY:
CAPABILITY HOST
DEPENDS ON:
COMMON
MANUAL:
/DOC/DEEP-DIVE-GROVE
EVIDENCE:
MANIFEST PLACEHOLDER PLATE NOT IN BUILD

# TRACE / GROVE 03 STEPS

  1. 01 Source/Host/Activation.rs ACTIVATION
  2. 02 Source/Host/APIBridge.rs THE API BRIDGE
  3. 03 Source/Host/Lifecycle.rs LIFECYCLE

SOURCE: /DOC/DEEP-DIVE-GROVE

Deep Dive, 15 PAGES, page 6 of 15

THE LAYER'S INDEX

NEXT: /BLOG 04 BLOG

NOTES FROM THE BUILD, NEWEST FIRST

〈06〉 /DOC/:SLUG 41 SHEETS AS OF: 2026-12-02