Skip to content

Function: executeUpdatePartitionContract() ​

ts
function executeUpdatePartitionContract<THandle>(params): Promise<{
  newEpoch: number;
  partitionId: string;
}>;

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

Executes the updatePartitionContract capability tool against the run's isolated CoW TopologyStore overlay (SPEC.md §3.3).

Tags the overlay update with ctx.stepExecId so step-scoped .retry() or .replaceWith() rollbacks preserve prior completed steps' contract mutations.

Type Parameters ​

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

Parameters ​

ParameterTypeDescription
paramsPlanMutationParams<THandle>Plan mutation parameters with contractUpdate and topologyStore.

Returns ​

Promise<{ newEpoch: number; partitionId: string; }>

Updated partition ID and overlay epoch.

Released under the MIT License.