Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/executor / SubprocessToolInit

Interface: SubprocessToolInit<S>

Defined in: packages/executor/src/subprocess.ts:316

@rulvar/executor: isolated tool executors (RV-216). Reference ToolExecutorProvider adapters that run a tool's work OUT of the engine process, so a tool whose input is hostile or model-generated cannot reach host capabilities the way an in-process tool (an ordinary function call) can.

  • subprocessExecutor runs the tool in a child process with a scrubbed environment, an ephemeral workdir, a hard timeout, and bounded output; pair it with a sandbox launcher for filesystem and network isolation.
  • containerExecutor runs it in a one-shot container with the network dropped, the filesystem read-only, and resource caps: the isolation the subprocess adapter cannot promise on its own.
  • subprocessTool defines a tool that dispatches through them.
  • executorConformance is the executable shared-contract battery.

The provider seam itself lives in @rulvar/core (createEngine({ executors })). Docs: https://docs.rulvar.com/guide/isolated-executor.

Type Parameters

Type Parameter
S extends SchemaSpec

Properties

PropertyTypeDescriptionDefined in
args?readonly string[]-packages/executor/src/subprocess.ts:324
commandstringThe program to run, and its fixed argv.packages/executor/src/subprocess.ts:323
descriptionstring-packages/executor/src/subprocess.ts:318
namestring-packages/executor/src/subprocess.ts:317
needsApproval?booleanThe terminal permission default asks when true.packages/executor/src/subprocess.ts:326
parametersS-packages/executor/src/subprocess.ts:319
risk?ToolRiskPolicy metadata; never identity.packages/executor/src/subprocess.ts:328
version?stringContract version, part of toolsetHash.packages/executor/src/subprocess.ts:321