DecisionNode
Interface: DecisionNode
Defined in: src/lib/injection-engine/skillGraph.ts:158
A decision-tree node (v3): a predicate that branches to a subtree (or a skill LEAF) on each side. The tree compiles to per-skill triggers — each leaf's trigger is the conjunction of the predicates on its root→leaf path (with earlier-sibling negation for if/else exclusivity), evaluated per iteration. So "predicate nodes that route" needs NO engine change — same evaluator.
Properties
kind
readonlykind:"decision"
Defined in: src/lib/injection-engine/skillGraph.ts:159
label?
readonlyoptionallabel?:string
Defined in: src/lib/injection-engine/skillGraph.ts:164
Caption for the predicate node when drawn (e.g. "io intent?").
predicate
readonlypredicate: (ctx) =>boolean
Defined in: src/lib/injection-engine/skillGraph.ts:160
Parameters
ctx
Returns
boolean
whenFalse
readonlywhenFalse:Injection|DecisionNode
Defined in: src/lib/injection-engine/skillGraph.ts:162
whenTrue
readonlywhenTrue:Injection|DecisionNode
Defined in: src/lib/injection-engine/skillGraph.ts:161
