Skip to content

Interface: SpeculateRefineWinnerConfig<TParentIn, TChildIn, TChildOut, THandle, TVerdict, TCandidate> ​

Defined in: ast/speculate-capability-node.ts:67

Optional post-arbitration refinement step (refineWinnerWhen) for synthesizing cross-candidate improvements on the winning branch.

Runs refinementExecutable on the winning branch scope while keeping losing candidate branches mounted read-only for git.candidateComparisonTools inspection before final tournament teardown.

Type Parameters ​

Type ParameterDefault typeDescription
TParentInunknownParent actor input payload type.
TChildInunknownBranch worker input payload type.
TChildOutunknownBranch worker output payload type.
THandleunknownRuntime handle type of the active BranchableScope.
TVerdictunknownStructured verdict output type of the arbiter agent.
TCandidateunknownCandidate record type passed to mapInput.

Properties ​

PropertyModifierTypeDescriptionDefined in
mapInputreadonlyBivariantCallback<[parentInput: TParentIn, verdict: TVerdict, candidates: readonly TCandidate[]], TChildIn>Synchronous mapper constructing the refinement executable's input from (parentInput, verdict, candidates).ast/speculate-capability-node.ts:82
predicatereadonlyBivariantCallback<[verdict: TVerdict], boolean>Predicate testing whether the arbiter's verdict requests post-selection refinement.ast/speculate-capability-node.ts:76
refinementExecutablereadonly| AgentNode<TChildIn, TChildOut, THandle> | LoopNode<TChildIn, TChildOut, THandle, string>Agent or loop executable invoked on the winning branch handle while losing branch handles remain readable.ast/speculate-capability-node.ts:78

Released under the MIT License.