Rulvar API reference / @rulvar/core / InProcessRunner
Class: InProcessRunner
Defined in: packages/core/src/runner/inprocess.ts:50
The mode (a) runner for human-authored closures. Determinism is enforced by convention, lint, and the ctx shims, NOT by a VM: only the sequence of keys must be stable. Bare-nondeterminism detection is ENGINE-owned since RV-209: the engine wraps its execute call in withDeterminismDetection (runner/determinism.ts), which classifies bare Date.now/Math.random callers, emits the structured determinism:warning event on the run's stream, and under determinism.mode: 'error' rejects the run with a typed DeterminismError. The runner itself is a pure executor, so the frozen ScriptRunner seam carries no detection surface; a standalone execute outside an engine runs without detection.
Implements
Constructors
Constructor
new InProcessRunner(o?): InProcessRunner;Defined in: packages/core/src/runner/inprocess.ts:53
Parameters
| Parameter | Type |
|---|---|
o? | { onEscalation?: OnEscalation; } |
o.onEscalation? | OnEscalation |
Returns
InProcessRunner
Accessors
escalationHook
Get Signature
get escalationHook():
| OnEscalation
| undefined;Defined in: packages/core/src/runner/inprocess.ts:60
The hook is read by the escalation delivery path from M3 onward.
Returns
| OnEscalation | undefined
Methods
execute()
execute<A, R>(
wf,
ctx,
args): Promise<R>;Defined in: packages/core/src/runner/inprocess.ts:64
Type Parameters
| Type Parameter |
|---|
A |
R |
Parameters
| Parameter | Type |
|---|---|
wf | | CompiledWorkflow | Workflow<A, R> |
ctx | Ctx<never> |
args | A |
Returns
Promise<R>