Skip to content

Interface: ChildInterruptHandlerNode<TPayload> ​

Defined in: ast/child-interrupt-handler-node.ts:12

Passive AST node representing an upward child-interrupt handler declared on a parent agent (.onChildInterrupt(interrupt, $intr => ...)).

Instructs the runtime to suspend the raising child fork at its continuation stack, pause concurrent sibling forks in pauseSiblingForksInPartitions(payload), and return a normal tool_result to the parent timeline.

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownInterrupt payload type validated by interrupt.schema.

Properties ​

PropertyModifierTypeDescriptionDefined in
interruptreadonlyInterruptNode<TPayload>Upward InterruptNode intercepted from a downward child fork or speculative branch.ast/child-interrupt-handler-node.ts:16
modereadonly"suspend-and-return-to-parent"Continuation-stack suspension mode returning control to the parent actor's single timeline.ast/child-interrupt-handler-node.ts:23
pauseSiblingForksInPartitions?readonlyBivariantCallback<[payload: TPayload], readonly string[]>Optional synchronous mapper returning partition IDs whose concurrent sibling forks must pause at the turn-batch barrier.ast/child-interrupt-handler-node.ts:18
typereadonly"harness:child-interrupt-handler"Discriminant identifying a child interrupt handler AST node.ast/child-interrupt-handler-node.ts:14

Released under the MIT License.