Expand description
Drivers: MCP servers run as supervised child processes under a manifest the user approved (spec 3.2 §7.7).
| Item | Spec |
|---|---|
EffectClass, DriverState | §7.7, §7.6 |
DriverManifest, DriverSandbox, DriverLifecycle, DriverAccess, load_manifests (feature drivers) | §7.7 |
DriverStore, DriverRecord, DriverPark, DriverIsolation (feature drivers) | §7.7, §9.3, §13 Q8, Q9 |
DriverProcessTree (feature drivers) | §7.7, §10 W1, K-I5 |
DriverSupervisor, DriverSupervisorBuilder, DriverProposal, DriverView, StandingRulePins (feature drivers) | §7.7, K-I13, K-I14 |
DriverPolicy (feature drivers) | §7.7, K-I9, K-I14 |
A driver’s lifecycle:
- Mount.
DriverSupervisor::proposeshows what the person approves — the command line, the partitions, the effect classes, the sandbox and the secrets it names — andDriverSupervisor::mountrecords the approval (kernel.driver.mounted). Nothing runs before it (K-I13). - Start. Lazily when a partition’s agent lists the driver’s tools, or at mount for
lifecycle = "eager". The stdio launcher runs the server under the OS sandbox where an enforcer exists and recordsUnsandboxed { reason }otherwise, with an environment cleared to an allowlist and eachsecret://reference minted by the credential broker into a file only the user can read. On Windows the server runs in a Job Object of its own, so ending the driver ends every process it started (spec 3.2 §10 W1). The first listing after approval pins each tool’s declaration digest. - Supervise. The MCP manager’s status channel (spec 3.2 §10 T1) becomes
KernelEvent::Driverevents andkernel.driver.*records; a crash restarts with the manifest’s backoff. - Stale. A tool whose declaration differs from its pin is stale: the harness’s
standing rules pinned to the old declaration stop matching,
DriverPolicyasks before every call of it, and the driver isNeedsReapproval(K-I14) untilDriverSupervisor::reapprovepins the new declarations and carries the re-approving person’s rules forward. - Park. A call the server answers with a question ends as a held call: the
DriverParkis stored beside the approval as the run’s checkpoint, the run parks, and the decision — after any restart — dispatches the call again, which re-issues it with the answers (spec 3.2 §13 Q9).
Structs§
- Driver
Access - What a sandboxed driver may reach besides the system’s read-only paths (spec 3.2 §7.7).
- Driver
Manifest - An MCP server run as a supervised child process, as the user approved it (spec 3.2 §7.7).
- Driver
Park - A driver tool call parked on its server’s input request, persisted beside the approval that asks the person: the run’s checkpoint payload (spec 3.2 §7.7, §13 Q9).
- Driver
Policy - Decides calls to driver tools by the approved manifests (spec 3.2 §7.7).
- Driver
Proposal - What the person approving a mount sees (spec 3.2 §7.7): the command line, the partitions and the effect classes, with the sandbox, its access and the secrets the driver names.
- Driver
Record - A mounted driver: the manifest the user approved, with what the kernel recorded since (spec 3.2 §7.7, §9.3, K-I13).
- Driver
Supervisor - The kernel’s supervisor of drivers: MCP servers run as child processes under the manifests the user approved (spec 3.2 §7.7).
- Driver
Supervisor Builder - Builds a
DriverSupervisor. - Driver
View - A mounted driver and its current state, as
GET /api/kernel/driverslists it.
Enums§
- Driver
Isolation - How a driver’s process was isolated when it last started (spec 3.2 §7.7).
- Driver
Lifecycle - When a driver’s process starts (spec 3.2 §7.7, the manifest’s
lifecycle). - Driver
Process Tree - What holds a driver’s process tree when it starts, so that ending the driver ends every process it started (spec 3.2 §7.7, §10 W1, K-I5).
- Driver
Sandbox - How a driver’s process is isolated (spec 3.2 §7.7).
- Driver
State - A driver’s state on the event bus (spec 3.2 §7.6): its MCP server’s status, or
NeedsReapprovalonce a tool’s declaration differs from the one pinned at approval. - Effect
Class - What a driver tool does to the world, as its manifest declares it (spec 3.2 §7.7).
Constants§
- DRIVER_
SOURCE_ PREFIX - The prefix of
driver_source. - SECRET_
SCHEME - The scheme of an environment value the credential broker resolves (spec 3.2 §7.7).
Traits§
- Driver
Store - The kernel’s store of mounted drivers and parked driver calls (spec 3.2 §7.7, §13 Q8).
- Standing
Rule Pins - Carries a person’s standing rules forward when a driver’s changed declarations are re-approved (spec 3.2 §7.7, K-I14).
Functions§
- driver_
of - The driver a
ToolOrigin::sourcenames, if it is a driver’s. - driver_
source - The
ToolOrigin::sourceof every tool driveridserves:driver:<id>(spec 3.2 §7.7). - load_
dir - Reads every
*.tomlmanifest indir, in file-name order; an absent directory has none. - load_
manifests - The manifests of the user’s drivers directory, each restricted by the workspace’s manifest of the same id (spec 3.2 §7.7: a project scope may only restrict).