SkillRouting
Interface: SkillRouting
Defined in: src/lib/injection-engine/skillGraph.ts:204
The routing PROVENANCE stamped onto a compiled skill's metadata.skillGraph
— why this skill is reachable. It rides through to the context.evaluated
event when the skill activates, so commentary + the lens can narrate the real
routing (not just "a skill activated"). Observability only; the trigger logic
is unchanged.
Properties
from?
readonlyoptionalfrom?:string
Defined in: src/lib/injection-engine/skillGraph.ts:219
Source skill id (route only).
label?
readonlyoptionallabel?:string
Defined in: src/lib/injection-engine/skillGraph.ts:217
Entry/route edge caption.
path?
readonlyoptionalpath?: readonlySkillRoutingStep[]
Defined in: src/lib/injection-engine/skillGraph.ts:211
Decision path (tree only): the predicates from root→leaf + branch taken.
For a skill used as MULTIPLE tree leaves this is the FIRST path; all
paths are in paths.
paths?
readonlyoptionalpaths?: readonly readonlySkillRoutingStep[][]
Defined in: src/lib/injection-engine/skillGraph.ts:215
All decision paths reaching this skill (tree only; present when the same skill is the leaf of more than one branch — the compiler merges repeated leaves into ONE injection whose trigger ORs the path predicates).
triggerKind?
readonlyoptionaltriggerKind?:string
Defined in: src/lib/injection-engine/skillGraph.ts:221
The compiled trigger kind for a route (rule / on-tool-return).
via
readonlyvia:"entry"|"model"|"tree"|"route"
Defined in: src/lib/injection-engine/skillGraph.ts:207
How the skill is reached: a decision tree leaf, a flat entry, a
deterministic route edge, or model (read_skill-reachable).
