Skip to content
1 min read · 147 words

Function: handleAppliesTo()

ts
function handleAppliesTo(kind: PlanNodeKind, handle: EdgeHandle): boolean;

Defined in: src/batteries/orchestration/plan.ts:448

Whether an edge handle may be used on an edge leaving a node of a given kind.

Parameters

ParameterTypeDescription
kindPlanNodeKindThe source node's kind.
handleEdgeHandleThe edge handle to test.

Returns

boolean

True when the handle is legal for that node kind.

Remarks

The applicability table, exactly:

  • entry'always'
  • call | reason | transform'always' | 'error'
  • branch'match' | 'no_match' | 'default' | 'error'
  • selectcase_${string} | 'default' | 'error'
  • join'always' | 'error'

This is a pure question about the graph; the freeze validator enforces it as policy. The executor uses it to decide which handles may fire for a settled node's outcome.