Skip to content

Interface: HierarchicalRewindDrainParams<TIn, THandle> ​

Defined in: runtime/flow/hierarchical-rewind-drain-params.ts:13

Parameters for executing the 4-step Hierarchical Rewind Drain Barrier (SPEC.md §3.10).

Supplies the flow execution context, target rewindToStepId, updated flow input, and optional onRewind scope hook.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated flow input payload type.
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
flowCtxreadonlyFlowExecutionContext<TIn, THandle>Active flow execution context.runtime/flow/hierarchical-rewind-drain-params.ts:15
onRewindHook?readonlyScopeRewindHookASTNode<THandle>Optional scope rewind hook executed during Step 4 of the drain barrier.runtime/flow/hierarchical-rewind-drain-params.ts:21
rewindToStepIdreadonlystring | nullTarget step or branch ID in flow.nodes to rewind execution to (or null when cancelling).runtime/flow/hierarchical-rewind-drain-params.ts:17
stepTerminalStatus?readonly"INTERRUPTED" | "CANCELLED"Terminal status recorded on the interrupted active step ('INTERRUPTED' or 'CANCELLED').runtime/flow/hierarchical-rewind-drain-params.ts:25
targetStepBaseScopeCheckpoint?readonlystringOptional base scope checkpoint recorded when the target step originally started.runtime/flow/hierarchical-rewind-drain-params.ts:23
updatedInputreadonlyTInUpdated flow input payload produced by onSignal.updateMapper.runtime/flow/hierarchical-rewind-drain-params.ts:19

Released under the MIT License.