Skip to content

Interface: ForkBatchExecutionParams<THandle> ​

Defined in: runtime/fork/fork-batch-execution-params.ts:45

Parameters for executing a concurrent batch of downward .fork() or resumeFork calls (SPEC.md §3.7.2).

Consolidates parent actor state, BranchableScope, ScopeLockManager, StepContinuationQueue, LedgerStore, LessonStore, ModelDriver, and the child step runner callback.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active BranchableScope.

Properties ​

PropertyModifierTypeDescriptionDefined in
branchableScopereadonlyBranchableScope<THandle, Record<string, unknown>, Record<string, unknown>>Active BranchableScope driver.runtime/fork/fork-batch-execution-params.ts:70
continuationQueuereadonlyStepContinuationQueuePer-stepExecId serialized continuation stack queue.runtime/fork/fork-batch-execution-params.ts:74
ctxreadonlyStepExecutionContext<THandle>Step execution context of the parent actor (ctx.scopeHandle is parentHandle).runtime/fork/fork-batch-execution-params.ts:88
executeChildStep?readonly(childNode, childInput, childCtx) => Promise<ChildForkExecutionOutcome<unknown>>Optional callback executing a child AgentNode or LoopNode on an isolated childHandle.runtime/fork/fork-batch-execution-params.ts:90
existingBatchFrame?readonlyForkBatchContinuationFrameExisting ForkBatchContinuationFrame when recovering or resuming mid-batch.runtime/fork/fork-batch-execution-params.ts:55
forkCalls?readonlyreadonly ForkDispatchCallItem<THandle>[]Dispatched .fork() call items for executeForkBatch.runtime/fork/fork-batch-execution-params.ts:57
humanAdaptersById?readonlyReadonlyMap<string, HumanAdapter>Optional map of HumanAdapter instances keyed by humanNode.id for cancelDecision.runtime/fork/fork-batch-execution-params.ts:86
ledgerStorereadonlyLedgerStoreDurable LedgerStore instance.runtime/fork/fork-batch-execution-params.ts:76
lessonStore?readonlyLessonStoreOptional LessonStore for idempotent post-CHILD_COMMITTED outcome flushing.runtime/fork/fork-batch-execution-params.ts:78
lockManagerreadonlyScopeLockManagerShared-read / exclusive-write lock manager for parentHandle.runtime/fork/fork-batch-execution-params.ts:72
modelDriver?readonlyModelDriverOptional ModelDriver for prepareFork and appendToolResultNotes.runtime/fork/fork-batch-execution-params.ts:82
outerFramesreadonlyreadonly ContinuationFrame[]Parent ContinuationFrame[] prefixing the ForkBatchContinuationFrame.runtime/fork/fork-batch-execution-params.ts:53
parentInputreadonlyunknownValidated parent input payload.runtime/fork/fork-batch-execution-params.ts:49
parentLeafMessageIdreadonlystring | nullParent leaf message ID at the fork point.runtime/fork/fork-batch-execution-params.ts:51
parentNodereadonlyAgentNode<unknown, unknown, THandle>Parent AgentNode dispatching the fork or resumeFork batch.runtime/fork/fork-batch-execution-params.ts:47
poolManager?readonlyPoolManagerOptional PoolManager for child .modelRouting.runtime/fork/fork-batch-execution-params.ts:80
precedingCompletedResults?readonlyreadonly PrecedingCompletedToolResult[]Preceding completed tool results in the same assistant turn batch forwarded to prepareFork.runtime/fork/fork-batch-execution-params.ts:59
resumeRequest?readonlyobjectDispatched resumeFork request for executeResumeForkBatch.runtime/fork/fork-batch-execution-params.ts:63
resumeRequest.actionreadonly"abort" | "resume"-runtime/fork/fork-batch-execution-params.ts:66
resumeRequest.callIdreadonlystring-runtime/fork/fork-batch-execution-params.ts:64
resumeRequest.resolutionSummaryreadonlystring-runtime/fork/fork-batch-execution-params.ts:67
resumeRequest.suspendedForkIdsreadonlyreadonly string[]-runtime/fork/fork-batch-execution-params.ts:65
siblingForkCallIds?readonlyreadonly string[]Sibling fork callIds in the same assistant turn batch forwarded to prepareFork.runtime/fork/fork-batch-execution-params.ts:61
wirePrefix?readonlyCompiledWirePrefixOptional pinned CompiledWirePrefix for the parent/child prefix group.runtime/fork/fork-batch-execution-params.ts:84

Released under the MIT License.