Skip to content

RuntimeLineage

Defined in: execution/lineage.ts:62

Complete lineage for a plan execution.

Stores lineage nodes keyed by their AST node ID. Provides a record method for the execution engine to add nodes.

const result = await run(plan, ctx)
// Inspect execution trace
for (const [nodeId, info] of result.lineage.nodes) {
console.log(`Node ${nodeId}: ${JSON.stringify(info.output)}`)
}

new RuntimeLineage(): RuntimeLineage

RuntimeLineage

readonly nodes: Map<NodeId, RuntimeLineageNode>

Defined in: execution/lineage.ts:64

Map of node IDs to their lineage information

record(node): void

Defined in: execution/lineage.ts:73

Record lineage information for a node.

Called by the execution engine as data flows through each node.

RuntimeLineageNode

The lineage information to record

void