Interfaces

SkillRouting

Interface: SkillRouting

Defined in: src/lib/injection-engine/skillGraph.ts:204

The routing PROVENANCE stamped onto a compiled skill's metadata.skillGraphwhy 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?

readonly optional from?: string

Defined in: src/lib/injection-engine/skillGraph.ts:219

Source skill id (route only).


label?

readonly optional label?: string

Defined in: src/lib/injection-engine/skillGraph.ts:217

Entry/route edge caption.


path?

readonly optional path?: readonly SkillRoutingStep[]

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?

readonly optional paths?: readonly readonly SkillRoutingStep[][]

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?

readonly optional triggerKind?: string

Defined in: src/lib/injection-engine/skillGraph.ts:221

The compiled trigger kind for a route (rule / on-tool-return).


via

readonly via: "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).

On this page