OptionalonIterationUpdate: (nodeId: string, count: number) => voidOptionalmaxIterations: numberGenerate an iterated stage name for context tree. First visit: "askLLM", second: "askLLM.1", third: "askLLM.2".
Resolve a dynamic continuation and execute it immediately.
Equivalent to executeNode(...resolveTarget(...)) — the traverser's
driver loop calls resolveTarget directly instead so the continuation
becomes a flat trampoline hop rather than a retained recursive frame.
OptionaltraversalContext: TraversalContextResolve a dynamic continuation to its target node + next StageContext
WITHOUT executing it. Fires the same side effects resolve always did
(iteration counting + limit, dynamicNext* logs, loop debug message,
onLoop narrative), in the same order.
Three dynamicNext patterns:
dynamicNextHops).OptionaltraversalContext: TraversalContext
Get the next iteration number for a node and increment. Returns 0 for first visit, 1 for second, etc. Throws if maxIterations exceeded (infinite loop guard).