Skip to content

Function: executeSpawnTasks() ​

ts
function executeSpawnTasks<THandle>(params): Promise<PlanMutationResult>;

Defined in: runtime/plan/execute-plan-mutation.ts:221

Executes the spawnTasks capability tool with linear prerequisite chaining ($T_{\text{prevTip}} \leftarrow T_1 \leftarrow \dots \leftarrow T_k \leftarrow T_{\text{parent}}$) (SPEC.md §3.7.2).

Enforces maxSpawnedPerRun, applies enforcePatch, computes 'inherit-parent-with-boost' priority, commits LedgerStore.mutateLanePlan(), and suspends the parent run with headScopeCheckpoint.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

Parameters ​

ParameterTypeDescription
paramsPlanMutationParams<THandle>Plan mutation parameters and task list.

Returns ​

Promise<PlanMutationResult>

Chained prerequisite keys and suspension metadata.

Released under the MIT License.