Skip to content

Interface: SpeculateTournamentParams<THandle> ​

Defined in: runtime/speculate/speculate-tournament-params.ts:25

Parameters for executing a parallel .speculate() tournament (SPEC.md §3.7.2 Capability 2).

Consolidates the SpeculateCapabilityNode, parent state, BranchableScope, ScopeLockManager, StepContinuationQueue, LedgerStore, LessonStore, HumanAdapter map, and step runner callback.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active BranchableScope.

Properties ​

PropertyModifierTypeDescriptionDefined in
argsJsonreadonlystringRaw JSON arguments passed to the .speculate() tool call.runtime/speculate/speculate-tournament-params.ts:43
branchableScopereadonlyBranchableScope<THandle, Record<string, unknown>, Record<string, unknown>>Active BranchableScope driver.runtime/speculate/speculate-tournament-params.ts:49
callIdreadonlystringWire-level tool callId of the .speculate() invocation.runtime/speculate/speculate-tournament-params.ts:31
capabilityreadonlySpeculateCapabilityNode<unknown, unknown, unknown, unknown, THandle, unknown, unknown>Matched SpeculateCapabilityNode.runtime/speculate/speculate-tournament-params.ts:33
continuationQueuereadonlyStepContinuationQueuePer-stepExecId serialized continuation stack queue.runtime/speculate/speculate-tournament-params.ts:53
ctxreadonlyStepExecutionContext<THandle>Step execution context of the parent actor (ctx.scopeHandle is parentHandle).runtime/speculate/speculate-tournament-params.ts:65
executeChildStep?readonly(childNode, childInput, childCtx) => Promise<ChildForkExecutionOutcome<unknown>>Optional callback executing a branch worker, sole-survivor evaluator, arbiter, or refinement step.runtime/speculate/speculate-tournament-params.ts:67
existingTournamentFrame?readonlySpeculateContinuationFrameOptional existing SpeculateContinuationFrame when recovering mid-tournament.runtime/speculate/speculate-tournament-params.ts:47
humanAdaptersById?readonlyReadonlyMap<string, HumanAdapter>Map of HumanAdapter instances keyed by humanNode.id for 'unpark-escalation'.runtime/speculate/speculate-tournament-params.ts:63
ledgerStorereadonlyLedgerStoreDurable LedgerStore instance.runtime/speculate/speculate-tournament-params.ts:55
lessonStore?readonlyLessonStoreOptional LessonStore flushed strictly for the winning branch after WINNER_COMMITTED.runtime/speculate/speculate-tournament-params.ts:57
lockManagerreadonlyScopeLockManagerShared-read / exclusive-write lock manager for parentHandle.runtime/speculate/speculate-tournament-params.ts:51
modelDriver?readonlyModelDriverOptional ModelDriver used for conflict-bounce note injection.runtime/speculate/speculate-tournament-params.ts:59
outerFramesreadonlyreadonly ContinuationFrame[]Outer continuation frames prefixing SpeculateContinuationFrame.runtime/speculate/speculate-tournament-params.ts:45
parentInputreadonlyunknownValidated parent input payload.runtime/speculate/speculate-tournament-params.ts:29
parentNodereadonlyAgentNode<unknown, unknown, THandle>Parent AgentNode launching the tournament.runtime/speculate/speculate-tournament-params.ts:27
wirePrefix?readonlyCompiledWirePrefixOptional pinned CompiledWirePrefix.runtime/speculate/speculate-tournament-params.ts:61

Released under the MIT License.