Skip to content

Interface: HarnessExecutionEngine ​

Defined in: ports/harness-execution-engine.ts:11

Factory interface for swappable execution engines that instantiate a HarnessRuntime from a passive HarnessNode.

Decouples declarative AST construction from concrete runtime orchestration engines.

Methods ​

createRuntime() ​

ts
createRuntime(harness, options?): HarnessRuntime;

Defined in: ports/harness-execution-engine.ts:23

Creates a new HarnessRuntime instance bound to the given declarative HarnessNode AST.

Extracts the passive HarnessNode when a builder is supplied and binds the provided executor registry and environment variable map without starting background loops until start() is called.

Parameters ​

ParameterTypeDescription
harness| HarnessNode | AstBuilder<HarnessNode>Compiled HarnessNode or P.harness(...) builder.
options?HarnessRuntimeOptionsOptional executor registry and environment map.

Returns ​

HarnessRuntime

Configured runtime instance ready to start().

Released under the MIT License.